Пример #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);
            }
        }
Пример #2
0
        public void ModifyCustomFilter(FilterItem existing)
        {
            FilterItem clone           = existing.Clone();
            var        filterViewModel = CreateCustomFilterViewModel(clone, true);

            ShowFilter(clone, filterViewModel, () => {
                existing.FilterCriteria = clone.FilterCriteria;
                existing.Name           = clone.Name;
                SaveCustomFilters();
                if (existing == SelectedItem)
                {
                    OnSelectedItemChanged();
                }
            });
        }
Пример #3
0
 protected override FilterItemBase CreateFilterItem(string name, CriteriaOperator filterCriteria, string imageUri)
 {
     return(FilterItem.Create(name, filterCriteria));
 }
Пример #4
0
 public void Select(FilterItem item)
 {
     SelectedItem = item;
 }
Пример #5
0
 public bool CanSelectModule(FilterItem item)
 {
     return(SelectedItem != item);
 }
Пример #6
0
 bool IsEmployeeFilter(FilterItem filterItem)
 {
     return(filterItem.FilterCriteria.LegacyToString().Contains(employeeFilterCriteriaHeader));
 }