Exemplo n.º 1
0
        public virtual IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfHandledObject dxfHandledObject = (DxfHandledObject)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfHandledObject == null)
            {
                dxfHandledObject = new DxfHandledObject();
                this.RegisterClone(cloneContext, (IGraphCloneable)dxfHandledObject);
                dxfHandledObject.CopyFrom(this, cloneContext);
            }
            return((IGraphCloneable)dxfHandledObject);
        }
Exemplo n.º 2
0
            public IExtendedDataValue Clone(CloneContext cloneContext)
            {
                DxfHandledObject dxfHandledObject = (DxfHandledObject)cloneContext.GetExistingClone((IGraphCloneable)this.Value);

                if (dxfHandledObject == null)
                {
                    ITableRecord tableRecord = this.Value as ITableRecord;
                    if (tableRecord == null)
                    {
                        dxfHandledObject = (DxfHandledObject)cloneContext.Clone((IGraphCloneable)this.Value);
                        cloneContext.method_0(dxfHandledObject);
                    }
                    else
                    {
                        dxfHandledObject = cloneContext.CloneTableRecord(tableRecord);
                    }
                }
                return((IExtendedDataValue) new DxfExtendedData.DatabaseHandle(dxfHandledObject));
            }
Exemplo n.º 3
0
        public virtual IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfObjectReference dxfObjectReference = (DxfObjectReference)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfObjectReference == null)
            {
                if (cloneContext.TargetModel == cloneContext.SourceModel)
                {
                    dxfObjectReference = this;
                }
                else
                {
                    dxfObjectReference = new DxfObjectReference();
                    cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfObjectReference);
                    IGraphCloneable idxfHandledObject0 = (IGraphCloneable)this.idxfHandledObject_0;
                    dxfObjectReference.Value = (IDxfHandledObject)idxfHandledObject0.Clone(cloneContext);
                }
            }
            return((IGraphCloneable)dxfObjectReference);
        }