Ejemplo n.º 1
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockRotateAction blockRotateAction = (DxfBlockRotateAction)from;

            this.ActionConnection = (DxfConnectionPoint)cloneContext.Clone((IGraphCloneable)blockRotateAction.ActionConnection);
        }
Ejemplo n.º 2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockRotateAction blockRotateAction = (DxfBlockRotateAction)cloneContext.GetExistingClone((IGraphCloneable)this);

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