public void AddConditionalAction(Func <T, bool> predicate, Action <CodeTriggerActor <T> > setters) { var actor = new CodeTriggerActor <T>(); setters(actor); var action = new ConditionalCodeTriggerAction <T>(Element, predicate, actor); conditionalActions.Add(action); action.Apply(null); }
public ConditionalCodeTriggerAction(T element, Func <T, bool> predicate, CodeTriggerActor <T> actor) { this.element = element; this.predicate = predicate; this.actor = actor; }