示例#1
0
		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;
			}
		}
示例#2
0
		void OnEdit()
		{
			var filterDetailsViewModel = new FilterDetailsViewModel(SelectedJournalFilter.JournalFilter);
			if (DialogService.ShowModalWindow(filterDetailsViewModel))
			{
				SelectedJournalFilter.JournalFilter = filterDetailsViewModel.JournalFilter;
				SelectedJournalFilter.Update();
				ServiceFactory.SaveService.GKChanged = true;
			}
		}