void AllItemImportedExported(CounterEventArg e, string errorMessage, string successMessage) { Messenger.Default.Send(new NotificationMessage(Messages.DismissWaitWindow)); if (e.Count == -1) { dialogService.ShowMessageBox(errorMessage, "Warn", MessageBoxButton.OK, MessageBoxImage.Warning); } else { dialogService.ShowMessageBox(successMessage, "Success", MessageBoxButton.OK, MessageBoxImage.Information); } }
void csvExporter_AllItemSaved(object sender, CounterEventArg e) { AllItemImportedExported(e, "Cannot export all of the rows.", "Successfully exported all of the rows."); }
void csvImporter_AllItemLoaded(object sender, CounterEventArg e) { AllItemImportedExported(e, "Cannot import all of the rows.", e.Count + " row(s) imported."); Messenger.Default.Send(new NotificationMessage(Messages.ReValidateAllRows)); }
void SchedulerOnWorksCompleted(object sender, CounterEventArg eventArgs) { IsReadOnly = false; RaiseInvalidateRequerySuggested(); }