Beispiel #1
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     if (CompteJoueursCRUD.ValideAdmin(txtUserName.Text, txtPwd.Text) == "SUCCESS")
     {
         EstConnecte = true;
         mainForm.ConnectionReussie();
         this.Close();
     }
     else
     {
         MessageBox.Show("The username or password is incorrect!\r\nOr you are not an administrator!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }