AccExitWin.xaml.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. //this.Close();
  42. //Application.Current.Shutdown();
  43. Pages.Authorization authorization = new Pages.Authorization();
  44. authorization.Show();
  45. Application.Current.ShutdownMode = ShutdownMode.OnMainWindowClose;
  46. }
  47. }
  48. }