public void ModifyGroup(FilterItem item) { GroupFilterViewModel viewModel = CreateCustomFilterViewModel <GroupFilterViewModel>(item); if (ShowFilterDialog(viewModel, "Group Filter")) { if (viewModel.Save) { ModifyGroupFilter(item); RaiseFilterTreeChanged(); } ApplyFilter(item); } }
void NewGroupCore(FilterItemBase newFilterItem) { GroupFilterViewModel viewModel = CreateCustomFilterViewModel <GroupFilterViewModel>(newFilterItem); if (ShowFilterDialog(viewModel, "Group Filter")) { if (viewModel.Save) { AddNewGroupFilter(newFilterItem); RaiseFilterTreeChanged(); } SelectedItem = newFilterItem; } }