Ejemplo n.º 1
0
        public override object CloneObject()
        {
            OutputPin clone = new OutputPin();

            CloneProperties(clone);
            return(clone);
        }
Ejemplo n.º 2
0
        protected void CloneProperties(object aClone)
        {
            OutputPin newClone = ((OutputPin)(aClone));

            if ((Text != null))
            {
                newClone.Text = ((ArticyScriptInstruction)(Text.CloneObject()));
            }
            newClone.Owner = Owner;
            List <OutgoingConnection> temp_Connections = new List <OutgoingConnection>();
            int i = 0;

            for (i = 0; (i < Connections.Count); i = (i + 1))
            {
                temp_Connections.Add(((OutgoingConnection)(Connections[i].CloneObject())));
            }
            newClone.Connections = temp_Connections;
            newClone.Id          = Id;
        }