/// <summary>
 /// Method to invoke when the RemoveBackupSet command is executed.
 /// </summary>
 private void OnRemoveBackupSetExecute()
 {
     if (_messageService.Show(string.Format("Are you sure you want to delete the BackupSet '{0}'?", SelectedBackupSet),
                              "Are you sure?", MessageButton.YesNo, MessageImage.Question) == MessageResult.Yes)
     {
         BackupSets.Remove(SelectedBackupSet);
         SelectedBackupSet = null;
     }
 }
Example #2
0
 /// <summary>
 /// Method to invoke when the RemoveBackupSet command is executed.
 /// </summary>
 private void OnRemoveBackupSetCollectionExecute()
 {
     //if (_messageService.Show(string.Format("Are you sure you want to delete the BackupSet '{0}'?", SelectedBackupSet),
     //   "Are you sure?", MessageButton.YesNo, MessageImage.Question) == MessageResult.Yes)
     if (_messageBoxService.ShowMessage(string.Format("Are you sure you want to delete the BackupSet '{0}'?", SelectedBackupSet.Name), "Delete Backup Set", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
     {
         BackupSets.Remove(SelectedBackupSet);
         SelectedBackupSet = null;
     }
 }