private void btnConn_Click(object sender, EventArgs e)
        {
            Connexion_in connexion = new Connexion_in();

            connexion.Hide();

            Menu_app menuApp = new Menu_app();

            menuApp.Show();
        }
Esempio n. 2
0
 private void btnConn_Click(object sender, EventArgs e)
 {
     if (txtId.Text == "gerant" && txtMdp.Text == "gerant")
     {
         this.Hide();
         Menu_app menuApp = new Menu_app();
         menuApp.Show();
     }
     else if (txtId.Text == "admin" && txtMdp.Text == "admin")
     {
         MessageBox.Show("vous etes connecte en tant que admin");
     }
 }