Esempio n. 1
0
 public void ResolveReferences(Class374 modelBuilder)
 {
     if (this.ulong_0 != 0UL)
     {
         this.class984_0.TextStyle = modelBuilder.method_4 <DxfTextStyle>(this.ulong_0);
     }
     if (!this.nullable_0.HasValue)
     {
         return;
     }
     this.class984_0.CellFormat = DxfValueFormat.Create(this.nullable_0, this.nullable_1, this.string_0);
 }
Esempio n. 2
0
 public void ResolveReferences(Class374 modelBuilder)
 {
     this.dxfContentFormat_0.method_4(DxfValueFormat.Create(this.valueDataType_0, this.valueUnitType_0));
     if (!string.IsNullOrEmpty(this.string_0))
     {
         this.dxfContentFormat_0.ValueFormat._FormatString = this.string_0;
     }
     if (this.ulong_0 == 0UL)
     {
         return;
     }
     this.dxfContentFormat_0.method_0(modelBuilder.method_4 <DxfTextStyle>(this.ulong_0));
 }
Esempio n. 3
0
        internal void Read(DxfXRecord xrecord)
        {
            ValueDataType?nullable1    = new ValueDataType?();
            ValueUnitType?nullable2    = new ValueUnitType?();
            string        formatString = (string)null;

            foreach (DxfXRecordValue dxfXrecordValue in (List <DxfXRecordValue>)xrecord.Values)
            {
                switch (dxfXrecordValue.Code)
                {
                case 1:
                case 11:
                case 91:
                case 140:
                case 330:
                    this.method_1(dxfXrecordValue.Value);
                    continue;

                case 90:
                    nullable1 = new ValueDataType?((ValueDataType)dxfXrecordValue.Value);
                    continue;

                case 93:
                    this.int_0 = (int)dxfXrecordValue.Value;
                    continue;

                case 94:
                    nullable2 = new ValueUnitType?((ValueUnitType)dxfXrecordValue.Value);
                    continue;

                case 300:
                    formatString = (string)dxfXrecordValue.Value;
                    continue;

                case 310:
                    this.object_0 = (object)DxfValue.smethod_3((byte[])dxfXrecordValue.Value);
                    continue;

                default:
                    continue;
                }
            }
            if (!nullable1.HasValue || !nullable2.HasValue)
            {
                return;
            }
            this.dxfValueFormat_0 = DxfValueFormat.Create(nullable1.Value, nullable2.Value, formatString);
        }