private void DoResetShortcuts(ViewModelMessageContent messageContent) { if (messageContent.Confirmed) { Manager.Default.SetDefaults(); ShortcutViewModels = new ShortcutViewModelCollection(); } }
private void DoDeleteAllBackups(ViewModelMessageContent messageContent) { if (messageContent.Confirmed) { Logger.Info("DoDeleteAllBackups: Iterating over {0} BackupFiles", BackupFiles.Count); foreach (BackupFileViewModel vm in BackupFiles) { vm.DeleteCommand.Execute(null); vm.IsSelected = vm.IsDeleted; } Logger.Info("DoDeleteAllBackups: Purging list"); BackupFiles.RemoveSelected(); Logger.Info("DoDeleteAllBackups: {0} BackupFiles remaining", BackupFiles.Count); OnPropertyChanged("HasBackups"); } else { Logger.Info("DoDeleteAllBackups: Action was not confirmed, not deleting backups"); } }