Esempio n. 1
0
 ///<summary>
 /// Constructor with controlFactory, propertyName and filterClauseOperator
 ///</summary>
 ///<param name="controlFactory"></param>
 ///<param name="propertyName"></param>
 ///<param name="filterClauseOperator"></param>
 public DateRangeComboBoxFilter(IControlFactory controlFactory, string propertyName, FilterClauseOperator filterClauseOperator)
 {
     _controlFactory       = controlFactory;
     _propertyName         = propertyName;
     _filterClauseOperator = filterClauseOperator;
     _dateRangeComboBox    = _controlFactory.CreateDateRangeComboBox();
     _dateRangeComboBox.SelectedIndexChanged += (sender, e) => FireValueChanged();
     _dateRangeComboBox.TextChanged          += (sender, e) => FireValueChanged();
 }
 ///<summary>
 /// Constructor with controlFactory, propertyName and filterClauseOperator
 ///</summary>
 ///<param name="controlFactory"></param>
 ///<param name="propertyName"></param>
 ///<param name="filterClauseOperator"></param>
 public DateRangeComboBoxFilter(IControlFactory controlFactory, string propertyName, FilterClauseOperator filterClauseOperator)
 {
     _controlFactory = controlFactory;
     _propertyName = propertyName;
     _filterClauseOperator = filterClauseOperator;
     _dateRangeComboBox = _controlFactory.CreateDateRangeComboBox();
     _dateRangeComboBox.SelectedIndexChanged += (sender, e) => FireValueChanged();
     _dateRangeComboBox.TextChanged += (sender,e) => FireValueChanged();
 }