public bool Export() { bool flag; if (this.ilist_0 == null) { flag = false; } else if (this.ilist_0.Count != 0) { DXFExport dXFExport = new DXFExport(); if (this.string_1 == "R2000") { DXFExport.autoCADVer = DXF.AutoCADVersion.R2000; } else if (this.string_1 == "R14") { DXFExport.autoCADVer = 0; } float[] singleArray = new float[] { 5f, default(float) }; dXFExport.AddLType("_SOLID", singleArray); singleArray = new float[] { 5f, -2f }; dXFExport.AddLType("_DASH", singleArray); singleArray = new float[] { 2f, -2f }; dXFExport.AddLType("_DOT", singleArray); dXFExport.AddLType("_DASHDOT", new float[] { 5f, -2f, 2f, -2f }); dXFExport.AddLType("_DASHDOTDOT", new float[] { 5f, -2f, 2f, -2f, 2f, -2f }); for (int i = 0; i < this.ilist_0.Count; i++) { IFeatureClass featureClass = null; object item = this.ilist_0[i]; if (item is IFeatureClass) { featureClass = item as IFeatureClass; } else if (item is IFeatureClassName) { featureClass = (item as IName).Open() as IFeatureClass; } if (featureClass != null) { if (this.setFeatureClassNameEnventHandler_0 != null) { this.setFeatureClassNameEnventHandler_0(featureClass.AliasName); } if (this.setFeatureCountEnventHandler_0 != null) { this.setFeatureCountEnventHandler_0(featureClass.FeatureCount(null)); } this.method_1(featureClass, dXFExport); } } if (File.Exists(this.string_0)) { File.Delete(this.string_0); } dXFExport.SaveToFile(this.string_0); flag = true; } else { flag = false; } return(flag); }