private bool method_14( DxfReader r, DxfDataTable.Class273 objectBuilder, ref DxfDataColumn currentColumn, ref int columnIndex, ref int rowIndex) { switch (r.CurrentGroup.Code) { case 1: this.Name = (string)r.CurrentGroup.Value; break; case 2: currentColumn.Name = (string)r.CurrentGroup.Value; break; case 3: this.method_15(ref rowIndex); currentColumn.Cells[rowIndex].Value = (DxfDataCellValue) new DxfDataCellValue.String((string)r.CurrentGroup.Value); break; case 10: this.method_15(ref rowIndex); currentColumn.Cells[rowIndex].Value = (DxfDataCellValue) new DxfDataCellValue.Point3D((WW.Math.Point3D)r.CurrentGroup.Value); break; case 11: this.method_15(ref rowIndex); currentColumn.Cells[rowIndex].Value = (DxfDataCellValue) new DxfDataCellValue.Vector3D((WW.Math.Vector3D)((WW.Math.Point3D)r.CurrentGroup.Value)); break; case 40: this.method_15(ref rowIndex); currentColumn.Cells[rowIndex].Value = (DxfDataCellValue) new DxfDataCellValue.Double((double)r.CurrentGroup.Value); break; case 70: this.short_0 = (short)r.CurrentGroup.Value; break; case 71: this.method_15(ref rowIndex); currentColumn.Cells[rowIndex].Value = (DxfDataCellValue) new DxfDataCellValue.Bool((bool)r.CurrentGroup.Value); break; case 90: this.ColumnCount = (int)r.CurrentGroup.Value; break; case 91: this.RowCount = (int)r.CurrentGroup.Value; break; case 92: ++columnIndex; rowIndex = -1; if (columnIndex >= this.ColumnCount) { throw new Exception("Column index " + (object)columnIndex + " too large for column count " + (object)this.ColumnCount + "."); } currentColumn = this.dxfDataColumnCollection_0[columnIndex]; currentColumn.CellType = (DataCellType)r.CurrentGroup.Value; break; case 93: this.method_15(ref rowIndex); currentColumn.Cells[rowIndex].Value = (DxfDataCellValue) new DxfDataCellValue.Int32((int)r.CurrentGroup.Value); break; case 330: this.method_15(ref rowIndex); DxfDataCellValue.ObjectIdBase o1 = (DxfDataCellValue.ObjectIdBase) new DxfDataCellValue.SoftPointerId(); objectBuilder.Add((Interface10) new DxfDataCellValue.ObjectIdBase.Class554(o1, (ulong)r.CurrentGroup.Value)); currentColumn.Cells[rowIndex].Value = (DxfDataCellValue)o1; break; case 331: this.method_15(ref rowIndex); DxfDataCellValue.ObjectIdBase o2 = (DxfDataCellValue.ObjectIdBase) new DxfDataCellValue.ObjectId(); objectBuilder.Add((Interface10) new DxfDataCellValue.ObjectIdBase.Class554(o2, (ulong)r.CurrentGroup.Value)); currentColumn.Cells[rowIndex].Value = (DxfDataCellValue)o2; break; case 340: this.method_15(ref rowIndex); DxfDataCellValue.ObjectIdBase o3 = (DxfDataCellValue.ObjectIdBase) new DxfDataCellValue.HardPointerId(); objectBuilder.Add((Interface10) new DxfDataCellValue.ObjectIdBase.Class554(o3, (ulong)r.CurrentGroup.Value)); currentColumn.Cells[rowIndex].Value = (DxfDataCellValue)o3; break; case 350: this.method_15(ref rowIndex); DxfDataCellValue.OwnerIdBase o4 = (DxfDataCellValue.OwnerIdBase) new DxfDataCellValue.SoftOwnerId(); objectBuilder.Add((Interface10) new DxfDataCellValue.OwnerIdBase.Class555(o4, (ulong)r.CurrentGroup.Value)); currentColumn.Cells[rowIndex].Value = (DxfDataCellValue)o4; break; case 360: this.method_15(ref rowIndex); DxfDataCellValue.OwnerIdBase o5 = (DxfDataCellValue.OwnerIdBase) new DxfDataCellValue.HardOwnerId(); objectBuilder.Add((Interface10) new DxfDataCellValue.OwnerIdBase.Class555(o5, (ulong)r.CurrentGroup.Value)); currentColumn.Cells[rowIndex].Value = (DxfDataCellValue)o5; break; default: return(this.method_6(r, (Class259)objectBuilder)); } r.method_85(); return(true); }
internal void Read(Interface30 r, DxfDataTable.Class273 tableBuilder, int columnIndex) { this.dataCellType_0 = (DataCellType)r.imethod_11(); this.string_0 = r.ReadString(); foreach (DxfDataCell dxfDataCell in this.list_0) { switch (this.dataCellType_0) { case DataCellType.Unknown: dxfDataCell.Value = (DxfDataCellValue)DxfDataCellValue.Unknown.Instance; continue; case DataCellType.Int32: dxfDataCell.Value = (DxfDataCellValue) new DxfDataCellValue.Int32(r.imethod_11()); continue; case DataCellType.Double: dxfDataCell.Value = (DxfDataCellValue) new DxfDataCellValue.Double(r.imethod_8()); continue; case DataCellType.String: dxfDataCell.Value = (DxfDataCellValue) new DxfDataCellValue.String(r.ReadString()); continue; case DataCellType.Point3D: dxfDataCell.Value = (DxfDataCellValue) new DxfDataCellValue.Point3D(r.imethod_39()); continue; case DataCellType.ObjectId: DxfDataCellValue.ObjectIdBase o1 = (DxfDataCellValue.ObjectIdBase) new DxfDataCellValue.ObjectId(); tableBuilder.Add((Interface10) new DxfDataCellValue.ObjectIdBase.Class554(o1, r.imethod_32(true))); dxfDataCell.Value = (DxfDataCellValue)o1; continue; case DataCellType.HardOwnerId: DxfDataCellValue.OwnerIdBase o2 = (DxfDataCellValue.OwnerIdBase) new DxfDataCellValue.HardOwnerId(); tableBuilder.Add((Interface10) new DxfDataCellValue.OwnerIdBase.Class555(o2, r.imethod_32(true))); dxfDataCell.Value = (DxfDataCellValue)o2; continue; case DataCellType.SoftOwnerId: DxfDataCellValue.OwnerIdBase o3 = (DxfDataCellValue.OwnerIdBase) new DxfDataCellValue.SoftOwnerId(); tableBuilder.Add((Interface10) new DxfDataCellValue.OwnerIdBase.Class555(o3, r.imethod_32(true))); dxfDataCell.Value = (DxfDataCellValue)o3; continue; case DataCellType.HardPointerId: DxfDataCellValue.ObjectIdBase o4 = (DxfDataCellValue.ObjectIdBase) new DxfDataCellValue.HardPointerId(); tableBuilder.Add((Interface10) new DxfDataCellValue.ObjectIdBase.Class554(o4, r.imethod_32(true))); dxfDataCell.Value = (DxfDataCellValue)o4; continue; case DataCellType.SoftPointerId: DxfDataCellValue.ObjectIdBase o5 = (DxfDataCellValue.ObjectIdBase) new DxfDataCellValue.SoftPointerId(); tableBuilder.Add((Interface10) new DxfDataCellValue.ObjectIdBase.Class554(o5, r.imethod_32(true))); dxfDataCell.Value = (DxfDataCellValue)o5; continue; case DataCellType.Bool: dxfDataCell.Value = (DxfDataCellValue) new DxfDataCellValue.Bool(r.imethod_6()); continue; case DataCellType.Vector3D: dxfDataCell.Value = (DxfDataCellValue) new DxfDataCellValue.Vector3D(r.imethod_51()); continue; default: throw new Exception("DataCellType " + (object)this.dataCellType_0 + " is not supported."); } } }