Esempio n. 1
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockFlipAction dxfBlockFlipAction = (DxfBlockFlipAction)from;

            this.ActionConnections = DxfConnectionPoint.Clone(cloneContext, dxfBlockFlipAction.ActionConnections);
        }
Esempio n. 2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockFlipAction dxfBlockFlipAction = (DxfBlockFlipAction)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfBlockFlipAction == null)
            {
                dxfBlockFlipAction = new DxfBlockFlipAction();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfBlockFlipAction);
                dxfBlockFlipAction.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)dxfBlockFlipAction);
        }