AccExitWin.xaml.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 ROGOZ.Windows
  15. {
  16. /// <summary>
  17. /// Логика взаимодействия для AccExitWin.xaml
  18. /// </summary>
  19. public partial class AccExitWin : Window
  20. {
  21. public AccExitWin()
  22. {
  23. InitializeComponent();
  24. }
  25. private void btnClose_Click(object sender, RoutedEventArgs e)
  26. {
  27. this.Close();
  28. }
  29. private void Window_MouseDown(object sender, MouseButtonEventArgs e)
  30. {
  31. if (e.LeftButton == MouseButtonState.Pressed) { DragMove(); }
  32. }
  33. private void Button_Click(object sender, RoutedEventArgs e)
  34. {
  35. this.Close();
  36. }
  37. private void Button_Click_1(object sender, RoutedEventArgs e)
  38. {
  39. Pages.Authorization authorization = new Pages.Authorization();
  40. authorization.Show();
  41. MainWindow mainWindow = new MainWindow();
  42. mainWindow.Close();
  43. this.Close();
  44. }
  45. }
  46. }