예제 #1
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfSortEntsTable dxfSortEntsTable = (DxfSortEntsTable)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfSortEntsTable == null)
            {
                dxfSortEntsTable = new DxfSortEntsTable();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfSortEntsTable);
                dxfSortEntsTable.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)dxfSortEntsTable);
        }
예제 #2
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfSortEntsTable dxfSortEntsTable = (DxfSortEntsTable)from;

            this.OwnerBlock = cloneContext.SourceModel != cloneContext.TargetModel ? Class906.smethod_0(cloneContext, dxfSortEntsTable.OwnerBlock, false) : (DxfBlock)cloneContext.GetExistingClone((IGraphCloneable)dxfSortEntsTable.OwnerBlock);
            foreach (DxfEntitySortWrapper from1 in dxfSortEntsTable.list_0)
            {
                DxfEntitySortWrapper entitySortWrapper = new DxfEntitySortWrapper();
                entitySortWrapper.CopyFrom(cloneContext, from1);
                this.list_0.Add(entitySortWrapper);
                this.dictionary_0[entitySortWrapper.Entity.Reference] = entitySortWrapper;
            }
        }