private void OnDeleteReport() { _filesToDelete.Add(SelectedReportName); UndoDeleteCommand.RaiseCanExecuteChanged(); SavedReportNames.Remove(SelectedReportName); SelectedReportName = string.Empty; }
private void OnUndoDelete() { foreach (var r in _filesToDelete) { SavedReportNames.Add(r); } _filesToDelete = new List <string>(); UndoDeleteCommand.RaiseCanExecuteChanged(); }
private void OnReturnToMain() { foreach (var r in _filesToDelete) { _fileHandler.DeleteReport(r); } _filesToDelete = new List <string>(); UndoDeleteCommand.RaiseCanExecuteChanged(); Done(); }