Beispiel #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);
            }
        }
Beispiel #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();
                }
            });
        }
Beispiel #3
0
 protected override FilterItemBase CreateFilterItem(string name, CriteriaOperator filterCriteria, string imageUri)
 {
     return(FilterItem.Create(name, filterCriteria));
 }
Beispiel #4
0
 public void Select(FilterItem item)
 {
     SelectedItem = item;
 }
Beispiel #5
0
 public bool CanSelectModule(FilterItem item)
 {
     return(SelectedItem != item);
 }
Beispiel #6
0
 bool IsEmployeeFilter(FilterItem filterItem)
 {
     return(filterItem.FilterCriteria.LegacyToString().Contains(employeeFilterCriteriaHeader));
 }