public Boolean trouve(string a, string b) { foreach (Utilisateur e1 in UserMdp) { if (e1.Username.Equals(a) && e1.Password.Equals(b)) { switch (a) { case "admin": adm = new Ajout_Sup_Modif(); adm.Show(); break; case "prepose": adm1 = new Admission(); adm1.Show(); break; case "medecin": adm2 = new CongeMedecin(); adm2.Show(); break; default: break; } return(true); } } return(false); }
private void btnAdm_Click(object sender, RoutedEventArgs e) { Admission adm = new Admission(); adm.Show(); }