using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using MySql.Data; using MySql.Data.MySqlClient; namespace GestionHotel { public partial class FormAuth : Form { public FormAuth() { InitializeComponent(); } private void btnAuth_Click(object sender, EventArgs e) { bool etatC = Fonctions.Connexion(); if (etatC) { labelEtatConnexion.Text = "ouverte"; } else { labelEtatConnexion.Text = "fermee"; } } } }