internal static bool smethod_3(Class857 A_0, bool A_1) { int num = 13; string key = A_0.method_11().method_1(); if (key != null) { int num2; if (Class1160.dictionary_147 == null) { Dictionary <string, int> dictionary1 = new Dictionary <string, int>(10); dictionary1.Add(BookmarkStart.b("䀲䄴丶唸帺", num), 0); dictionary1.Add(BookmarkStart.b("弲尴䐶䴸ᘺ丼䬾㡀⽂⁄", num), 1); dictionary1.Add(BookmarkStart.b("尲䀴䌶唸刺匼娾汀あㅄ㹆╈⹊", num), 2); dictionary1.Add(BookmarkStart.b("圲吴䌶尸ᘺ丼䬾㡀⽂⁄", num), 3); dictionary1.Add(BookmarkStart.b("䜲尴娶尸ᘺ丼䬾㡀⽂⁄", num), 4); dictionary1.Add(BookmarkStart.b("崲䀴娶嬸帺似ሾ㉀㝂㱄⭆ⱈ", num), 5); dictionary1.Add(BookmarkStart.b("倲䀴䔶䬸帺匼尾㡀湂㙄㍆え❊⡌", num), 6); dictionary1.Add(BookmarkStart.b("䌲倴䔶娸帺匼䬾⁀⑂⁄橆㩈㽊㑌⍎㑐", num), 7); dictionary1.Add(BookmarkStart.b("儲娴堶唸帺尼儾汀あㅄ㹆╈⹊", num), 8); dictionary1.Add(BookmarkStart.b("䜲倴伶䴸ᘺ丼䬾㡀⽂⁄", num), 9); Class1160.dictionary_147 = dictionary1; } if (Class1160.dictionary_147.TryGetValue(key, out num2)) { switch (num2) { case 0: Class921.smethod_0(A_0, A_1); return(true); case 1: Class573.smethod_0(A_0, A_1); return(true); case 2: Class573.smethod_1(A_0); return(true); case 3: case 4: Class1050.smethod_0(A_0, A_1); return(true); case 5: case 6: case 7: case 8: case 9: return(true); } } } return(false); }
public void Write(bool validate) { Class809.smethod_0(Enum15.const_3); DxfMessage[] messages; if (validate && !this.dxfModel_0.Validate(out messages)) { throw new DxfException("Cannot write invalid model", messages); } if (this.dxfModel_0.Header.AcadVersion < DxfVersion.Dxf13 || this.dxfModel_0.Header.AcadVersion > DxfVersion.Dxf27) { throw new NotSupportedException("Currently DwgWriter only supports writing versions 13, 14, 15, 18, 21, 24 and 27."); } this.dxfModel_0.method_28(new Class1070(this.dxfModel_0, FileFormat.Dwg, this.dxfVersion_0)); DxfScale currentAnnotationScale = this.dxfModel_0.Header.CurrentAnnotationScale; this.dxfModel_0.Header.CurrentAnnotationScale = (DxfScale)null; switch (this.dxfVersion_0) { case DxfVersion.Dxf13: Class745.Write(this.stream_0, this.dxfModel_0); break; case DxfVersion.Dxf14: Class722.Write(this.stream_0, this.dxfModel_0); break; case DxfVersion.Dxf15: Class653.Write(this.stream_0, this.dxfModel_0); break; case DxfVersion.Dxf18: new Class499(this.stream_0, this.dxfModel_0).Write(); break; case DxfVersion.Dxf21: Class921.Write(this.stream_0, this.dxfModel_0); break; case DxfVersion.Dxf24: new Class499(this.stream_0, this.dxfModel_0).Write(); break; case DxfVersion.Dxf27: new Class500(this.stream_0, this.dxfModel_0).Write(); break; } this.dxfModel_0.Header.CurrentAnnotationScale = currentAnnotationScale; if (!this.bool_0) { return; } this.stream_0.Close(); }
internal static void smethod_0(Class857 A_0) { int num = 3; Class396 class2 = A_0.method_11(); while (class2.method_9(BookmarkStart.b("娨弪听䌮吰䀲", num))) { if (!smethod_3(A_0, false)) { string key = class2.method_1(); if (key != null) { int num2; if (Class1160.dictionary_144 == null) { Dictionary <string, int> dictionary1 = new Dictionary <string, int>(6); dictionary1.Add(BookmarkStart.b("䴨个䬬丮䐰弲䄴ᨶ䨸伺䐼匾⑀", num), 0); dictionary1.Add(BookmarkStart.b("䜨䐪夬䨮䈰Ḳ嘴堶圸崺吼堾㑀ㅂ⑄㍆⁈⑊⍌", num), 1); dictionary1.Add(BookmarkStart.b("䐨䨪弬䐮吰䄲", num), 2); dictionary1.Add(BookmarkStart.b("娨弪弬䀮娰嘲ᠴ匶堸䠺唼", num), 3); dictionary1.Add(BookmarkStart.b("丨太䰬䬮堰嘲嬴䌶", num), 4); dictionary1.Add(BookmarkStart.b("䔨䈪䌬䨮弰䘲場唶尸䤺吼儾♀湂♄⡆❈ⵊ⡎⅒㑔⍖じ㑚㍜", num), 5); Class1160.dictionary_144 = dictionary1; } if (Class1160.dictionary_144.TryGetValue(key, out num2)) { switch (num2) { case 0: { Class921.smethod_0(A_0, false); continue; } case 1: { smethod_6(A_0); continue; } case 2: { smethod_5(A_0); continue; } case 3: { smethod_4(A_0); continue; } case 4: { smethod_2(A_0); continue; } case 5: { smethod_1(A_0); continue; } } } } class2.vmethod_1(); } } A_0.method_6(true, false); smethod_8(A_0); }