Inheritance: FilterBase
Example #1
0
 public override object Clone()
 {
     DateFilter temp = new DateFilter();
     temp._name = _name;
     temp._condition = _condition;
     temp._dateImplication = _dateImplication;
     temp._dateType = _dateType;
     temp._dateValue = _dateValue;
     temp._enabled = _enabled;
     return temp;
 }
Example #2
0
        private void AddDateFilter(DateFilter filter, bool addToFileFilter)
        {
            DateFilterView view = new DateFilterView();

            if(filter == null) {
                view.Filter = new DateFilter(FileDateType.CreationDate, DateImplication.From, DateTime.Now);
            }
            else {
                view.Filter = filter;
            }

            if(addToFileFilter) {
                fileFilter.AddFilter(view.Filter);
            }

            AddFilterView(view);
        }