Example #1
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockMoveAction dxfBlockMoveAction = (DxfBlockMoveAction)from;

            this.ActionConnections = DxfConnectionPoint.Clone(cloneContext, dxfBlockMoveAction.ActionConnections);
        }
Example #2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockMoveAction dxfBlockMoveAction = (DxfBlockMoveAction)cloneContext.GetExistingClone((IGraphCloneable)this);

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