Example #1
0
        protected override void OnImportAction()
        {
            base.OnImportAction();
            AB_ConditionBranch branch = this.ActionObject as AB_ConditionBranch;

            if (branch != null)
            {
                branch.SetOnConditionChanged(onConditionChanged);
            }
        }
Example #2
0
        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);
        }
Example #3
0
 public IfElseActionBlock(AB_ConditionBranch ca)
     : base(ca)
 {
     _conditionAction = ca;
 }