Ejemplo n.º 1
0
 private void RunBackup()
 {
     try
     {
         ProgressMessage  = "In Progress";
         StatusImageIndex = 1;
         BackupEntityForVm.RunCurrentBackup();
     }
     catch (Exception e)
     {
         MessageBoxService.ShowMessage(e.Message, "Error Starting Backup", MessageButton.OK, MessageIcon.Error);
         StatusImageIndex = 2;
         ProgressMessage  = "Error";
     }
 }
Ejemplo n.º 2
0
        private void VerifyBackup()
        {
            if (!VerifyBackupOnComplete)
            {
                return;
            }

            if (BackupEntityForVm.VerifyBackup())
            {
                MessageBoxService.ShowMessage($"The backup for {BackupEntityForVm.CurrentDatabase.Name} is valid", "Backup Verification Result",
                                              MessageButton.OK, MessageIcon.Information);
            }
            else
            {
                MessageBoxService.ShowMessage($"Warning: The backup for {BackupEntityForVm.CurrentDatabase.Name} is invalid \n" +
                                              $"It is recommended that you create another backup. If this problem persists\n" +
                                              $"you may have an issue with data corruption. ", "Backup Verification Result",
                                              MessageButton.OK, MessageIcon.Warning);
            }
        }