Esempio n. 1
0
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     if (LogicBroker.BackUpDatabase())
     {
         HSTLogger.Data("App Exit", "Backup of files complete.");
     }
     else
     {
         HSTLogger.Data("App Exit", "Unable to backup to file system.");
         MessageBox.Show("Backup failed.", "Information", MessageBoxButton.OK, MessageBoxImage.Information);
     }
     HSTLogger.Flush();
 }