void OnAdd() { var filterDetailsViewModel = new FilterDetailsViewModel(); if (DialogService.ShowModalWindow(filterDetailsViewModel)) { XManager.DeviceConfiguration.JournalFilters.Add(filterDetailsViewModel.JournalFilter); var filterViewModel = new FilterViewModel(filterDetailsViewModel.JournalFilter); JournalFilters.Add(filterViewModel); SelectedJournalFilter = filterViewModel; ServiceFactory.SaveService.GKChanged = true; } }
void OnEdit() { var filterDetailsViewModel = new FilterDetailsViewModel(SelectedJournalFilter.JournalFilter); if (DialogService.ShowModalWindow(filterDetailsViewModel)) { SelectedJournalFilter.JournalFilter = filterDetailsViewModel.JournalFilter; SelectedJournalFilter.Update(); ServiceFactory.SaveService.GKChanged = true; } }