Habanero.Faces.Win.FilterControlWin.AddDateFilterDateTimePicker C# (CSharp) Method

AddDateFilterDateTimePicker() public method

Adds a date-time picker that filters a date column on the date chosen by the user. The given operator compares the chosen date with the date shown in the given column name.
public AddDateFilterDateTimePicker ( string labelText, string propertyName, System.DateTime defaultValue, FilterClauseOperator filterClauseOperator, bool nullable ) : IDateTimePicker
labelText string The label to appear before the control
propertyName string The business object property on which to filter
defaultValue System.DateTime The default date or null
filterClauseOperator FilterClauseOperator The operator used to compare /// with the date chosen by the user. The chosen date is on the /// right side of the equation.
nullable bool Whether the datetime picker allows null values
return IDateTimePicker
        public IDateTimePicker AddDateFilterDateTimePicker(string labelText, string propertyName, DateTime? defaultValue,
                                                           FilterClauseOperator filterClauseOperator, bool nullable)
        {

            ICustomFilter filter =
                _filterControlManager.AddDateFilterDateTimePicker(labelText, propertyName, filterClauseOperator, defaultValue);
            
            filter.ValueChanged += delegate { if (this.FilterMode == FilterModes.Filter) FireFilterEvent(); };
            return (IDateTimePicker)filter.Control;
        }