Esempio n. 1
0
        private void btnBack_Click(object sender, RoutedEventArgs e)
        {
            AdminWindow admin = new AdminWindow();

            admin.Show();
            this.Close();
        }
Esempio n. 2
0
 private void btnEnter_Click(object sender, RoutedEventArgs e)
 {
     if (txtUsername.Text.ToLower() == "test" && @txtPassword.Password == "123")
     {
         AdminWindow admin = new AdminWindow();
         admin.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("Username or Password is incorrect");
     }
 }
Esempio n. 3
0
 private void txtPassword_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Return)
     {
         if (txtUsername.Text.ToLower() == "test" && @txtPassword.Password == "123")
         {
             AdminWindow admin = new AdminWindow();
             admin.Show();
             this.Close();
         }
         else
         {
             MessageBox.Show("Username or Password is incorrect");
         }
     }
 }