Exemple #1
0
        private void BtnUpdate_Click(object sender, RoutedEventArgs e)
        {
            Update_Menu u = new Update_Menu();

            u.Show();
            this.Close();
        }
Exemple #2
0
 private void BtnLogin_Click(object sender, RoutedEventArgs e)
 {
     if (con.State == System.Data.ConnectionState.Open)
     {
         con.Close();
     }
     if (VerifyUser(txtUsername.Text, txtPassword.Password))
     {
         Update_Menu update_Menu = new Update_Menu();
         update_Menu.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("Username or password is incorrect", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }