Пример #1
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockGripExpression blockGripExpression = (DxfBlockGripExpression)from;

            this.ActionConnection = (DxfConnectionPoint)cloneContext.Clone((IGraphCloneable)blockGripExpression.ActionConnection);
        }
Пример #2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockGripExpression blockGripExpression = (DxfBlockGripExpression)cloneContext.GetExistingClone((IGraphCloneable)this);

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