void OnShowSettings() { try { var archiveSettingsViewModel = new ArchiveSettingsViewModel(); if (DialogService.ShowModalWindow(archiveSettingsViewModel)) { ServiceFactory.Events.GetEvent<JournalSettingsUpdatedEvent>().Publish(null); Update(); } } catch (Exception e) { Logger.Error(e, "Исключение при вызове ArchiveViewModel.ShowSettingsCommand"); MessageBoxService.ShowException(e); } }
void OnShowSettings() { try { var archiveSettingsViewModel = new ArchiveSettingsViewModel(ArchiveDefaultState); if (DialogService.ShowModalWindow(archiveSettingsViewModel)) { ArchiveFilter = null; ArchiveDefaultState = archiveSettingsViewModel.GetModel(); ClientSettings.ArchiveDefaultState = ArchiveDefaultState; IsFilterOn = false; } } catch (Exception e) { Logger.Error(e, "ArchiveViewModel.ShowSettingsCommand"); MessageBoxService.ShowException(e); } }