Пример #1
0
 private void Accept_Click(object sender, RoutedEventArgs e)
 {
     if (passwordBox.Password == "1")
     {
         MenuWindow window = new MenuWindow();
         window.Show();
         AutorizationWindow.Close();
     }
     else
     {
         MessageBox.Show("Неверный пароль");
     }
 }
Пример #2
0
 private void Deny_Click(object sender, RoutedEventArgs e)
 {
     // CreateDB db = new CreateDB();
     // db.Create();
     AutorizationWindow.Close();
 }