Пример #1
0
 private void Login()
 {
     string pwd = Controle.hashPassword(TB_MDP.Text, null, System.Security.Cryptography.SHA256.Create());
     if (pwd == checkIn)
     {
         this.Visible = false;
         FORM_Main FM = new FORM_Main();
         FM.ShowDialog();
     }
     else
     {
         LBL_Erreur.Visible = true;
         TB_MDP.Focus();
     }
 }
Пример #2
0
        private void Login()
        {
            string pwd = Controle.hashPassword(TB_MDP.Text, null, System.Security.Cryptography.SHA256.Create());

            if (pwd == checkIn)
            {
                this.Visible = false;
                FORM_Main FM = new FORM_Main();
                FM.ShowDialog();
            }
            else
            {
                LBL_Erreur.Visible = true;
                TB_MDP.Focus();
            }
        }