/// <summary> /// Setup filter controls with current criteria values /// </summary> void SetupFilter(FilterType ft) { if (ft == FilterType.BasicCriteria) { FilterBasicControl.Setup(ColInfo, this); } else if (ft == FilterType.CheckBoxList) { FilterListControl.Setup(ColInfo); } else if (ft == FilterType.ItemSlider) { FilterItemControl.Setup(ColInfo); } else if (ft == FilterType.RangeSlider) { FilterRangeControl.Setup(ColInfo); } else if (ft == FilterType.StructureSearch) { FilterStructureControl.Setup(ColInfo); } }
private static void _setFilterItem(FilterItemControl fic, MessageType mt) { Config.Instance.Filters[mt].IsEnabled = fic.IsFilterEnabled; Config.Instance.Filters[mt].IsRegexEnabled = fic.IsRegexEnabled; Config.Instance.Filters[mt].RegexPattern = fic.PatternText; }