Beispiel #1
0
        public object CloneObject(object aParent, Articy.Unity.ArticyObject aFirstClassParent)
        {
            IncomingConnection clone = new IncomingConnection();

            CloneProperties(clone, aFirstClassParent);
            return(clone);
        }
Beispiel #2
0
        private void CloneProperties(object aClone, Articy.Unity.ArticyObject aFirstClassParent)
        {
            IncomingConnection newClone = ((IncomingConnection)(aClone));

            newClone.Label     = Unresolved_Label;
            newClone.Color     = Color;
            newClone.SourcePin = SourcePin;
            if ((mSource != null))
            {
                newClone.mSource = ((ArticyValueArticyObject)(mSource.CloneObject(newClone, aFirstClassParent)));
            }
        }