コード例 #1
0
        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);
        }
コード例 #2
0
 public ConditionalCodeTriggerAction(T element, Func <T, bool> predicate, CodeTriggerActor <T> actor)
 {
     this.element   = element;
     this.predicate = predicate;
     this.actor     = actor;
 }