private void InitializeTemplates() { this.filterRuleTemplateSelector = new FilterRuleTemplateSelector(); this.InitializeTemplatesForInputTypes(); List <KeyValuePair <Type, string> > defaultTemplates = new List <KeyValuePair <Type, string> >() { #region Info for Default Templates new KeyValuePair <Type, string>(typeof(SelectorFilterRule), "CompositeRuleTemplate"), new KeyValuePair <Type, string>(typeof(SingleValueComparableValueFilterRule <>), "ComparableValueRuleTemplate"), new KeyValuePair <Type, string>(typeof(IsEmptyFilterRule), "NoInputTemplate"), new KeyValuePair <Type, string>(typeof(IsNotEmptyFilterRule), "NoInputTemplate"), new KeyValuePair <Type, string>(typeof(FilterRulePanelItemType), "FilterRulePanelGroupItemTypeTemplate"), new KeyValuePair <Type, string>(typeof(ValidatingValue <>), "ValidatingValueTemplate"), new KeyValuePair <Type, string>(typeof(ValidatingSelectorValue <>), "ValidatingSelectorValueTemplate"), new KeyValuePair <Type, string>(typeof(IsBetweenFilterRule <>), "IsBetweenRuleTemplate"), new KeyValuePair <Type, string>(typeof(Object), "CatchAllTemplate") #endregion Info for Default Templates }; defaultTemplates.ForEach(templateInfo => this.AddFilterRulePanelItemContentTemplate(templateInfo.Key, templateInfo.Value)); }
private void InitializeTemplates() { this.filterRuleTemplateSelector = new FilterRuleTemplateSelector(); this.InitializeTemplatesForInputTypes(); List<KeyValuePair<Type, string>> defaultTemplates = new List<KeyValuePair<Type, string>>() { #region Info for Default Templates new KeyValuePair<Type, string>(typeof(SelectorFilterRule), "CompositeRuleTemplate"), new KeyValuePair<Type, string>(typeof(SingleValueComparableValueFilterRule<>), "ComparableValueRuleTemplate"), new KeyValuePair<Type, string>(typeof(IsEmptyFilterRule), "NoInputTemplate"), new KeyValuePair<Type, string>(typeof(IsNotEmptyFilterRule), "NoInputTemplate"), new KeyValuePair<Type, string>(typeof(FilterRulePanelItemType), "FilterRulePanelGroupItemTypeTemplate"), new KeyValuePair<Type, string>(typeof(ValidatingValue<>), "ValidatingValueTemplate"), new KeyValuePair<Type, string>(typeof(ValidatingSelectorValue<>), "ValidatingSelectorValueTemplate"), new KeyValuePair<Type, string>(typeof(IsBetweenFilterRule<>), "IsBetweenRuleTemplate"), new KeyValuePair<Type, string>(typeof(Object), "CatchAllTemplate") #endregion Info for Default Templates }; defaultTemplates.ForEach(templateInfo => this.AddFilterRulePanelItemContentTemplate(templateInfo.Key, templateInfo.Value)); }