Procházet zdrojové kódy

backend : add save on clsing

Robert před 3 roky
rodič
revize
9a2810eda8
1 změnil soubory, kde provedl 7 přidání a 0 odebrání
  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)