protected override void OnImportAction() { base.OnImportAction(); AB_ConditionBranch branch = this.ActionObject as AB_ConditionBranch; if (branch != null) { branch.SetOnConditionChanged(onConditionChanged); } }
public static ActionBlock CreateActionBlock(ActionBranch act) { ActionBlock ab; AB_ConditionBranch c = act as AB_ConditionBranch; if (c != null) { ab = new IfElseActionBlock(c); } else { AB_SingleActionBlock sa = act as AB_SingleActionBlock; if (sa != null) { ab = new StringActionBlock(sa); } else { throw new DesignerException("Unsupported action:{0}", act.GetType()); } } ab.CreateBlocks(); return(ab); }
public IfElseActionBlock(AB_ConditionBranch ca) : base(ca) { _conditionAction = ca; }