예제 #1
0
파일: App.xaml.cs 프로젝트: pashav15/pashav
 void App_Exit(object sender, ExitEventArgs e)
 {
     extensionService.OnAppExit();
     dsLoaderService.Save();
     try {
         new XmlSettingsWriter(settingsService).Write();
     }
     catch {
     }
     compositionContainer.Dispose();
 }
예제 #2
0
 void App_Exit(object sender, ExitEventArgs e)
 {
     extensionService?.OnAppExit();
     dsLoaderService?.Save();
     try {
         var settingsService = exportProvider?.GetExportedValue <SettingsService>();
         if (settingsService != null)
         {
             new XmlSettingsWriter(settingsService).Write();
         }
     }
     catch {
     }
 }