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); }
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); }