public void CopyActionsFrom(AB_Squential actions, List <ComponentIcon> icons)
 {
     this.Name         = actions.Name;
     this.Description  = actions.Description;
     this.EditorBounds = actions.EditorBounds;
     _iconList         = icons;
     ActionList        = actions.ActionList;
 }
Ejemplo n.º 2
0
        public override object Clone()
        {
            AB_Squential obj = (AB_Squential)base.Clone();

            if (_list != null)
            {
                obj.ActionList = (BranchList)_list.Clone();
            }
            return(obj);
        }
Ejemplo n.º 3
0
        public void RemoveLocalVariable(ComponentIconLocal v, List <UInt32> usedBranches)
        {
            if (usedBranches.Contains(this.BranchId))
            {
                return;
            }
            usedBranches.Add(this.BranchId);
            ISubMethod af = this as ISubMethod;

            if (af != null)
            {
                af.ComponentIconList.Remove(v);
                if (v.ClassPointer != null)
                {
                    ComponentIconLocal cx = null;
                    foreach (ComponentIcon c in af.ComponentIconList)
                    {
                        ComponentIconLocal c0 = c as ComponentIconLocal;
                        if (c0 != null && c0.ClassPointer != null)
                        {
                            if (c0.ClassPointer.IsSameObjectRef(v.ClassPointer))
                            {
                                cx = c0;
                                break;
                            }
                        }
                    }
                    if (cx != null)
                    {
                        af.ComponentIconList.Remove(cx);
                    }
                }
            }
            BranchList acts = ActionList;

            if (acts != null)
            {
                foreach (ActionBranch ab in acts)
                {
                    AB_Squential abs = ab as AB_Squential;
                    if (abs != null)
                    {
                        abs.RemoveLocalVariable(v, usedBranches);
                    }
                }
            }
        }