private void OnDescriptorTypeChanged() { this.filterOperators = DataFilterOperatorContext.GetFilterOperators(this.DescriptorType); this.defaultFilterOperators = (IList <FilterOperator>) new List <FilterOperator>((IEnumerable <FilterOperator>) this.filterOperators); this.defaultFilterOperator = this.GetDefaultFilterOperator(this.DescriptorType); this.defaultValue = this.GetDefaultDescriptorValue(); }
protected override void InitializeFields() { base.InitializeFields(); this.descriptorName = "DefaultName"; this.descriptorType = typeof(string); this.defaultFilterOperator = FilterOperator.None; this.filterOperators = DataFilterOperatorContext.GetFilterOperators(this.descriptorType); this.defaultFilterOperators = (IList <FilterOperator>) new List <FilterOperator>((IEnumerable <FilterOperator>) this.filterOperators); this.defaultValue = (object)string.Empty; }