فهرست منبع

backend : add save on clsing

Robert 3 سال پیش
والد
کامیت
9a2810eda8
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      BellwetherBackend/MainWindow.xaml.cs

+ 7 - 0
BellwetherBackend/MainWindow.xaml.cs

@@ -26,6 +26,13 @@ namespace BellwetherBackend
         public MainWindow()
         {
             InitializeComponent();
+
+            Closing += MainWindow_Closing;
+        }
+
+        private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
+        {
+            SaveCurrentPage();
         }
 
         private void RadioButton_Checked(object sender, RoutedEventArgs e)