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

            this.LabelText   = blockLookUpParameter.LabelText;
            this.Description = blockLookUpParameter.Description;
            this.ActionId    = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)blockLookUpParameter.ActionId);
        }
Esempio n. 2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockLookUpParameter blockLookUpParameter = (DxfBlockLookUpParameter)cloneContext.GetExistingClone((IGraphCloneable)this);

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