Login.xaml.cs 962 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Shapes;
  14. namespace Learn
  15. {
  16. /// <summary>
  17. /// Логика взаимодействия для Login.xaml
  18. /// </summary>
  19. public partial class Login : Window
  20. {
  21. public Login()
  22. {
  23. InitializeComponent();
  24. }
  25. private void GoAuth(object sender, RoutedEventArgs e)
  26. {
  27. if (Pass.Password == "0000")
  28. {
  29. MainFrame.mframe.Navigate(new DataList(1));
  30. this.Close();
  31. }
  32. else
  33. {
  34. MessageBox.Show("Пароль не пароль");
  35. }
  36. }
  37. }
  38. }