internal override void vmethod_1(Class1070 context) { base.vmethod_1(context); int num = 101; for (int index = 3; index < this.dxfTableCellStyleCollection_0.Count; ++index) { this.dxfTableCellStyleCollection_0[index].Id = num++; } if (this.Model.Header.AcadVersion >= DxfVersion.Dxf21 && context.FileFormat != FileFormat.Dxf) { DxfDictionary extensionDictionary = this.ExtensionDictionary; if (extensionDictionary == null) { return; } for (int index = extensionDictionary.Entries.Count - 1; index >= 0; --index) { if (extensionDictionary.Entries[index].Value is DxfCellStyleMap) { extensionDictionary.Entries.RemoveAt(index); } } } else { this.Model.method_31((DxfObject)this); DxfCellStyleMap dxfCellStyleMap = this.method_17(); if (dxfCellStyleMap == null) { if (this.ExtensionDictionary == null) { this.ExtensionDictionary = new DxfDictionary(); } dxfCellStyleMap = new DxfCellStyleMap(); this.ExtensionDictionary.Entries.Add((IDictionaryEntry) new DxfDictionaryEntry((DxfObject)dxfCellStyleMap) { ValueReferenceIsHard = true }); } dxfCellStyleMap.CellStyles.Clear(); foreach (DxfTableCellStyle dxfTableCellStyle in (Collection <DxfTableCellStyle>) this.dxfTableCellStyleCollection_0) { dxfCellStyleMap.CellStyles.Add(dxfTableCellStyle); } } }
internal DxfCellStyleMap method_17() { DxfCellStyleMap dxfCellStyleMap = (DxfCellStyleMap)null; DxfDictionary extensionDictionary = this.ExtensionDictionary; if (extensionDictionary != null) { foreach (IDictionaryEntry entry in (ActiveList <IDictionaryEntry>)extensionDictionary.Entries) { dxfCellStyleMap = entry.Value as DxfCellStyleMap; if (dxfCellStyleMap != null) { break; } } } return(dxfCellStyleMap); }