Ejemplo n.º 1
0
        public override void CopyFrom(Action copy)
        {
            base.CopyFrom(copy);

            ActionIfThenElse copyite = copy as ActionIfThenElse;

            this.IF = CGFactory.CreateCGInstance(copyite.IF.GetType().ToString()) as CGME.ActionGroup;
            this.IF.CopyFrom(copyite.IF);

            this.THEN = CGFactory.CreateCGInstance(copyite.THEN.GetType().ToString()) as CGME.ActionGroup;
            this.THEN.CopyFrom(copyite.THEN);

            this.ELSE = CGFactory.CreateCGInstance(copyite.ELSE.GetType().ToString()) as CGME.ActionGroup;
            this.ELSE.CopyFrom(copyite.ELSE);
        }
Ejemplo n.º 2
0
        public override void CopyFrom(Action copy)
        {
            base.CopyFrom(copy);

            ActionGroup copyGroup = copy as ActionGroup;

            foreach (Action copying_child in copyGroup.Children)
            {
                Action child = CGFactory.CreateCGInstance(copying_child.GetType().ToString()) as CGME.Action;

                child.CopyFrom(copying_child);

                this.AddAction(child);
                //copied_children.CopyFrom
            }
        }