Window1.xaml.cs 827 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Data;
  8. using System.Windows.Documents;
  9. using System.Windows.Input;
  10. using System.Windows.Media;
  11. using System.Windows.Media.Imaging;
  12. using System.Windows.Shapes;
  13. namespace AGV_WPF
  14. {
  15. /// <summary>
  16. /// Window1.xaml 的交互逻辑
  17. /// </summary>
  18. public partial class Window1 : Window
  19. {
  20. public Window1()
  21. {
  22. InitializeComponent();
  23. this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
  24. }
  25. public bool IsClose { get; set; }
  26. private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
  27. {
  28. IsClose = true;
  29. }
  30. }
  31. }