Пример #1
0
        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);
        }
Пример #2
0
        private void btnAdm_Click(object sender, RoutedEventArgs e)
        {
            Admission adm = new Admission();

            adm.Show();
        }