Esempio n. 1
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     if ((txtUser.Text == "admin" || txtUser.Text == "Admin") && (txtPass.Text == "password" || txtPass.Text == "Password"))
     {
         frmUpdateWords update = new frmUpdateWords();
         update.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Invalid log in\nPLease try again", "Invalid Log In");
     }
 }
Esempio n. 2
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     if ((txtUser.Text == "admin" || txtUser.Text == "Admin") && (txtPass.Text == "password" || txtPass.Text == "Password"))
     {
         frmUpdateWords update = new frmUpdateWords();
         update.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Invalid log in\nPLease try again", "Invalid Log In");
     }
 }