Ejemplo n.º 1
0
 /// <summary>
 /// demande de vérification de l'authentification
 /// si les informations sont correctes, alors ouverture de la fenêtre principale
 /// </summary>
 /// <param name="login"></param>
 /// <param name="pwd"></param>
 /// <returns></returns>
 public Boolean ControleAuthentification(string login, string pwd)
 {
     if (AccesDonnees.ControleAuthentification(login, pwd))
     {
         frmAuthentification.Hide();
         (new FrmGestionPersonnel(this)).ShowDialog();
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Demande la vérification de l'authentification
 /// Si correct, alors ouvre la fenêtre principale
 /// </summary>
 /// <param name="login"></param>
 /// <param name="pwd"></param>
 /// <returns></returns>
 public Boolean ControleAuthentification(string nom, string prenom, string pwd)
 {
     if (AccesDonnees.ControleAuthentification(nom, prenom, pwd))
     {
         frmAuthentification.Hide();
         (new FrmHabilitations(this)).ShowDialog();
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 3
0
        public void Authentification(string login, string pwd)
        {
            if (AccesDonnees.ControleAuthentification(login, pwd))
            {
                frmConnexion.Hide();
                LesPersonnels = GetPersonnels();
                new FrmPersonnel(this);
            }

            else
            {
                frmConnexion.ErreurConnexion();
            }
        }