Пример #1
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfUcs dxfUcs = (DxfUcs)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfUcs == null)
            {
                dxfUcs = new DxfUcs();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfUcs);
                dxfUcs.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)dxfUcs);
        }
Пример #2
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfUcs dxfUcs = (DxfUcs)from;

            this.string_0        = dxfUcs.string_0;
            this.point3D_0       = dxfUcs.point3D_0;
            this.vector3D_0      = dxfUcs.vector3D_0;
            this.vector3D_1      = dxfUcs.vector3D_1;
            this.double_0        = dxfUcs.double_0;
            this.standardFlags_0 = dxfUcs.standardFlags_0;
            this.vector3D_2      = dxfUcs.vector3D_2;
            this.vector3D_3      = dxfUcs.vector3D_3;
            this.vector3D_4      = dxfUcs.vector3D_4;
            this.vector3D_5      = dxfUcs.vector3D_5;
            this.vector3D_6      = dxfUcs.vector3D_6;
            this.vector3D_7      = dxfUcs.vector3D_7;
        }