Exemplo n.º 1
0
 private void BOK_Click(object sender, EventArgs e)
 {
     if (Verif())
     {
         string ID  = tbID.Text;
         string mdp = tbMDP.Text;
         if (Modele.verifLogin(ID, mdp))
         {
             System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(ThreadProc));
             t.Start();
             this.Close();
         }
         else
         {
             MessageBox.Show("Login ou mdp invalide");
         }
     }
     else
     {
         MessageBox.Show("ID ou MDP non remplit");
     }
 }