Esempio n. 1
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);
        }
Esempio n. 2
0
 public StringActionBlock(AB_SingleActionBlock act)
     : base(act)
 {
     _act = act;
 }