A Custom Filter Control for DateTimePickerFilter.
Inheritance: ICustomFilter
示例#1
0
        /// <summary>
        /// See <see cref="IFilterControl.AddDateFilterDateTimePicker"/>
        /// </summary>
        public ICustomFilter AddDateFilterDateTimePicker(string labelText, string propertyName, FilterClauseOperator filterClauseOperator, DateTime?defaultDate)
        {
            DateTimePickerFilter filter = new DateTimePickerFilter(_controlFactory, propertyName, filterClauseOperator);

            AddCustomFilter(labelText, filter);
            if (defaultDate != null)
            {
                filter.DefaultDate = defaultDate.Value;
            }


            return(filter);
        }
        /// <summary>
        /// See <see cref="IFilterControl.AddDateFilterDateTimePicker"/>
        /// </summary>
        public ICustomFilter AddDateFilterDateTimePicker(string labelText, string propertyName, FilterClauseOperator filterClauseOperator, DateTime? defaultDate)
        {
            DateTimePickerFilter filter = new DateTimePickerFilter(_controlFactory, propertyName, filterClauseOperator);
            AddCustomFilter(labelText, filter);
            if (defaultDate != null)
            {
                filter.DefaultDate = defaultDate.Value;
            }
            

            return filter;
        }