예제 #1
0
 public IAction[] GetAllActionsFlat()
 {
     return(new IAction[] { ActionIf, ActionElse, Checker }
            .Union(ActionIf.GetAllActionsFlat())
            .Union(ActionElse.GetAllActionsFlat())
            .Union(Checker.GetAllActionsFlat())
            .ToArray());
 }
예제 #2
0
 public void SetValue(ExecutionContext context, string value)
 {
     if (Checker.Evaluate(context))
     {
         ActionIf.SetValue(context, string.Empty);
     }
     else
     {
         ActionElse.SetValue(context, string.Empty);
     }
 }