private void AdminLoginButton_Click(object sender, RoutedEventArgs e) { if (DBInterface.AdminInput(AdminLoginTB.Text.Trim(), AdminPassTB.Password.Trim())) { var AdminWindow = new AdminWindow(AdminLoginTB.Text.Trim(), AdminPassTB.Password.Trim()); AdminWindow.Show(); } else { MessageBox.Show( "Неверный логин или пароль!", "Ошибка", MessageBoxButton.OK, MessageBoxImage.Error ); } }
public AddAdminTab(AdminWindow adminWindow) { InitializeComponent(); AdminWindow = adminWindow; }