Exemplo n.º 1
0
 /// <summary>
 /// Control that the input given by the manager fits with the input stored in the database
 /// </summary>
 /// <param name="login">user login</param>
 /// <param name="password">user password</param>
 /// <returns>true if the authentification is successfull</returns>
 public Boolean ControlAuthentification(string login, string password)
 {
     if (AccessDataBase.ControlAuthentification(login, password))
     {
         FrmAuthentification.Hide();
         (new FrmEmployee(this)).ShowDialog();
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo 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);
     }
 }
Exemplo n.º 3
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);
     }
 }
 /// <summary>
 /// Méthode qui appelle la méthode VerifierAuthentification de la classe AccesDonnees et lui envoie le nom d'utilisateur
 /// et le mot de passe saisis par l'utilisateur.
 /// Ouvre l'application si la méthode VerifierAuthentification de la classe AccesDonnees retourne 'vrai'.
 /// </summary>
 /// <param name="utilisateur">Le nom d'utilisateur saisi par l'utilisateur dans la vue FrmAuthentification.</param>
 /// <param name="motdepasse">Le mot de passe saisi par l'utilisateur dans la vue FrmAuthentification.</param>
 /// <returns>Un booléen qui est 'vrai si la méthode VerifierAuthentification de la classe AccesDonnees retourne 'vrai', 'faux' si le retour est 'faux'.</returns>
 public bool VerifierAuthentification(string utilisateur, string motdepasse)
 {
     if (AccesDonnees.VerifierAuthentification(utilisateur, motdepasse))
     {
         frmAuthentification.Hide();
         frmPersonnel.ShowDialog();
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 5
0
 public bool verifierAuthentification(string nom, string prenom, string text)
 {
     if (AccesDonnees.VerifierAuthentification(nom, prenom, text))
     {
         frmAuthentification.Hide();
         FrmHabilitations frmHabilitations = new FrmHabilitations(this);
         frmHabilitations.ShowDialog();
         return(true);
     }
     else
     {
         return(false);
     }
 }