public BasicFilter(string name, ITag tag, IOperator filterOperator, string criteria) : base(name) { _tag = tag; _operator = filterOperator; _tag.attachObserver(this); this._criteria = criteria; }
public void edit(string newName, ITag newTag, IOperator newFilterOperator, string newCriteria) { Data.ActionHandler.beginMacro(); Data.ActionHandler.storeAction(new EditBasicFilter(this, _name, _tag, _operator, _criteria)); _name = newName; _operator = newFilterOperator; _criteria = newCriteria; _tag.detachObserver(this); _tag = newTag; _tag.attachObserver(this); Data.ActionHandler.endMacro(); }