Esempio n. 1
0
 public override object Clone()
 {
     AttributeFilter temp = new AttributeFilter();
     temp._name = _name;
     temp._attributeValue = _attributeValue;
     temp._condition = _condition;
     temp._enabled = _enabled;
     return temp;
 }
Esempio n. 2
0
        private void AddAttributeFilter(AttributeFilter filter, bool addToFileFilter)
        {
            AttributeFilterView view = new AttributeFilterView();

            if(filter == null) {
                view.Filter = new AttributeFilter(FileAttributes.Archive);
            }
            else {
                view.Filter = filter;
            }

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

            AddFilterView(view);
        }