Esempio n. 1
0
        public void ModifyGroup(FilterItem item)
        {
            GroupFilterViewModel viewModel = CreateCustomFilterViewModel <GroupFilterViewModel>(item);

            if (ShowFilterDialog(viewModel, "Group Filter"))
            {
                if (viewModel.Save)
                {
                    ModifyGroupFilter(item);
                    RaiseFilterTreeChanged();
                }
                ApplyFilter(item);
            }
        }
Esempio n. 2
0
        void NewGroupCore(FilterItemBase newFilterItem)
        {
            GroupFilterViewModel viewModel = CreateCustomFilterViewModel <GroupFilterViewModel>(newFilterItem);

            if (ShowFilterDialog(viewModel, "Group Filter"))
            {
                if (viewModel.Save)
                {
                    AddNewGroupFilter(newFilterItem);
                    RaiseFilterTreeChanged();
                }
                SelectedItem = newFilterItem;
            }
        }