Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 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;
 }