예제 #1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     try
     {
         r = BackupRestore.GetAvailableRestorationPoints();
         listBox1.ItemsSource = r;
     }
     catch (System.Exception ex)
     {
         log.Error(ex);
     }
 }
예제 #2
0
 private void Backup_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         conn.Close();
         //conn.Dispose();
         if (!not.isShown)
         {
             not.ShowWindow("Please wait as Express Taxi Backup the active database.");
         }
         if (!BackupRestore.BackupDatabase())
         {
             Config.ShowErrorMessage("Database backup has failed, please retry at another time.");
         }
         conn.Open();
     }
     catch (System.Exception ex)
     {
         log.Error(ex);
     }
 }