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

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

            if ((Text != null))
            {
                newClone.Text = ((ArticyScriptCondition)(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;
        }