private static void smethod_2(string[] lines, ref int l) { CtbFile.Interface45 token; do { ; }while ((token = CtbFile.smethod_5(lines, ref l)).Type == CtbFile.Enum43.const_0); CtbFile.smethod_4(token, l); }
private void method_3(string[] lines, ref int l) { CtbFile.Interface45 token; while ((token = CtbFile.smethod_5(lines, ref l)).Type == CtbFile.Enum43.const_0) { CtbFile.smethod_3(this.list_1.Count, token.Key, l); this.list_1.Add(token.imethod_1(l)); } CtbFile.smethod_4(token, l); }
private void method_2(string[] lines, ref int l) { CtbFile.Interface45 token; while ((token = CtbFile.smethod_5(lines, ref l)).Type == CtbFile.Enum43.const_1) { CtbFile.smethod_3(this.list_0.Count, token.Key, l); CtbFile.ColorEntry colorEntry = new CtbFile.ColorEntry(this, l); colorEntry.method_0(lines, ref l); this.list_0.Add(colorEntry); } CtbFile.smethod_4(token, l); }
internal void method_0(string[] lines, ref int l) { CtbFile.Interface45 token; while ((token = CtbFile.smethod_5(lines, ref l)).Type == CtbFile.Enum43.const_0) { switch (token.Key) { case "name": this.string_2 = token.imethod_0(l); continue; case "localized_name": this.string_3 = token.imethod_0(l); continue; case "description": this.string_4 = token.imethod_0(l); continue; case "color": this.struct15_0 = new CtbFile.Struct15((uint)token.imethod_2(l)); continue; case "mode_color": this.struct15_1 = new CtbFile.Struct15((uint)token.imethod_2(l)); continue; case "color_policy": this.colorPolicy_0 = (CtbFile.ColorPolicy)token.imethod_2(l); continue; case "physical_pen_number": this.int_1 = token.imethod_2(l); continue; case "virtual_pen_number": this.int_2 = token.imethod_2(l); continue; case "screen": this.int_3 = token.imethod_2(l); continue; case "linepattern_size": this.double_0 = token.imethod_1(l); continue; case "linetype": this.simpleLineType_0 = (CtbFile.SimpleLineType)token.imethod_2(l); continue; case "adaptive_linetype": this.bool_0 = token.imethod_3(1); continue; case "lineweight": this.int_4 = token.imethod_2(l); continue; case "fill_style": this.fillStyle_0 = (FillStyle)token.imethod_2(l); continue; case "end_style": this.lineCapStyle_0 = (CtbFile.LineCapStyle)token.imethod_2(l); continue; case "join_style": this.lineJoinStyle_0 = (CtbFile.LineJoinStyle)token.imethod_2(l); continue; default: throw new IOException("CTB file format error: Unknown value key " + token.Key + " [line " + (object)l + "]"); } } CtbFile.smethod_4(token, l); }
private void method_0(string content) { this.list_0.Clear(); this.list_1.Clear(); string[] lines = content.Split(new string[2] { "\n", "\r\n" }, StringSplitOptions.RemoveEmptyEntries); int l = 0; while (l < lines.Length) { if (CtbFile.smethod_1(lines[l])) { ++l; } else { CtbFile.Interface45 nterface45 = CtbFile.smethod_5(lines, ref l); switch (nterface45.Type) { case CtbFile.Enum43.const_0: switch (nterface45.Key) { case "description": this.string_24 = nterface45.imethod_0(l); continue; case "aci_table_available": continue; case "scale_factor": this.double_1 = nterface45.imethod_1(l); continue; case "apply_factor": this.bool_0 = nterface45.imethod_3(l); continue; case "custom_lineweight_display_units": this.displayUnit_0 = (CtbFile.DisplayUnit)nterface45.imethod_2(l); continue; default: throw new IOException("CTB file format error: Unknown global value " + nterface45.Key + " [line " + (object)l + "]"); } case CtbFile.Enum43.const_1: switch (nterface45.Key) { case "aci_table": CtbFile.smethod_2(lines, ref l); continue; case "plot_style": this.method_2(lines, ref l); continue; case "custom_lineweight_table": this.method_3(lines, ref l); continue; default: continue; } case CtbFile.Enum43.const_2: throw new IOException("CTB file format error: Unexpected close [line " + (object)l + "]"); default: continue; } } } }