Example #1
0
        public IGraphCloneable GetExistingClone(IGraphCloneable sourceObject)
        {
            if (sourceObject == null)
            {
                return((IGraphCloneable)null);
            }
            IGraphCloneable graphCloneable;

            this.dictionary_0.TryGetValue(sourceObject, out graphCloneable);
            return(graphCloneable);
        }
Example #2
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);
        }
Example #3
0
 public virtual void RegisterClone(CloneContext cloneContext, IGraphCloneable clone)
 {
     cloneContext.RegisterClone((IGraphCloneable)this, clone);
 }
Example #4
0
 public void RegisterClone(IGraphCloneable sourceObject, IGraphCloneable clonedObject)
 {
     this.dictionary_0.Add(sourceObject, clonedObject);
 }
Example #5
0
 public IGraphCloneable Clone(IGraphCloneable sourceObject)
 {
     return(sourceObject?.Clone(this));
 }
Example #6
0
 public override void RegisterClone(CloneContext cloneContext, IGraphCloneable clone)
 {
     base.RegisterClone(cloneContext, clone);
     cloneContext.CloneBuilders.Add((ICloneBuilder) new DxfBlock.Class751(this, (DxfBlock)clone));
 }