private void Button2_Click(object sender, EventArgs e) { string text = Interaction.InputBox("请输入你要添加的内容:\n\n 不得包含\"\\\"、\"/\"和\"=\"等限制字符。\n命令添加说明:命令描述@命令代码", "田草CAD工具箱.Net版", "", -1, -1); checked { if (Operators.CompareString(text, "", false) != 0) { if (Strings.InStr(text, "@", CompareMethod.Binary) > 0 & Strings.InStr(text, "@", CompareMethod.Binary) < text.Length) { if (Operators.CompareString(text, "", false) != 0) { Interaction.MsgBox(text, MsgBoxStyle.OkOnly, null); string name = this.TreeView1.SelectedNode.Name; int num = (int)this.inStr_n(name, "\\"); string str = Conversions.ToString(Strings.Chr(64 + num + 1)); string key = name + str + NF.Time2String() + "\\"; this.TreeView1.SelectedNode.Nodes.Add(key, text); } this.Button4.Enabled = true; } if (Information.Err().Number != 0) { Interaction.MsgBox(Information.Err().Description, MsgBoxStyle.OkOnly, null); } } } }
private void Button6_Click(object sender, EventArgs e) { string str = ""; string str2 = ""; if (Operators.CompareString(this.TextBox2.Text, "", false) != 0) { str = "!" + this.TextBox2.Text; } if (Operators.CompareString(this.TextBox3.Text, "", false) != 0) { str2 = "!!" + this.TextBox3.Text; } string text = this.TextBox1.Text + str + str2; text = Strings.Replace(text, "\r\n", "'", 1, -1, CompareMethod.Binary); checked { if (Operators.CompareString(text, "", false) != 0) { Interaction.MsgBox(text, MsgBoxStyle.OkOnly, null); string name = this.TreeView1.SelectedNode.Name; int num = (int)this.inStr_n(name, "\\"); string str3 = Conversions.ToString(Strings.Chr(64 + num + 1)); name + str3 + NF.Time2String() + "\\"; this.TreeView1.SelectedNode.Text = text; this.Button4.Enabled = true; string filePath = Class33.Class31_0.Info.DirectoryPath + "\\施工做法.txt"; this.SaveData(filePath); if (Information.Err().Number != 0) { Interaction.MsgBox(Information.Err().Description, MsgBoxStyle.OkOnly, null); } } } }
private void jipAtgRsh(object sender, EventArgs e) { int num; int num3; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; string text = Interaction.InputBox("请输入你要添加的分类:\n\n 不得包含\"\\\"、\"/\"和\"=\"等限制字符。\n命令添加说明:命令描述@命令代码", "田草CAD工具箱.Net版", "", -1, -1); IL_22: num2 = 3; string key = "A" + NF.Time2String() + "\\"; IL_3A: num2 = 4; if (Operators.CompareString(text, "", false) != 0) { goto IL_52; } IL_4D: goto IL_E7; IL_52: num2 = 7; this.TreeView1.Nodes.Add(key, text); IL_68: num2 = 8; this.Button4.Enabled = true; IL_76: goto IL_E7; IL_78: goto IL_F1; IL_7A: num3 = num2; if (num <= -2) { goto IL_91; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); goto IL_C5; IL_91: int num4 = num3 + 1; num3 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num4); IL_C5: goto IL_F1; } catch when(endfilter(obj is Exception & num != 0 & num3 == 0)) { Exception ex = (Exception)obj2; goto IL_7A; } IL_E7: if (num3 != 0) { ProjectData.ClearProjectError(); } return; IL_F1: throw ProjectData.CreateProjectError(-2146828237); }
private void Button3_Click(object sender, EventArgs e) { int num; int num5; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; string str = ""; IL_12: num2 = 3; string str2 = ""; IL_1A: num2 = 4; if (Operators.CompareString(this.TextBox2.Text, "", false) == 0) { goto IL_53; } IL_3A: num2 = 5; str = "!" + this.TextBox2.Text; IL_53: num2 = 7; if (Operators.CompareString(this.TextBox3.Text, "", false) == 0) { goto IL_8B; } IL_73: num2 = 8; str2 = "!!" + this.TextBox3.Text; IL_8B: num2 = 10; string text = this.TextBox1.Text + str + str2; IL_A2: num2 = 11; text = Strings.Replace(text, "\r\n", "'", 1, -1, CompareMethod.Binary); IL_B9: num2 = 12; if (Operators.CompareString(text, "", false) != 0) { goto IL_D2; } IL_CD: goto IL_244; IL_D2: num2 = 15; Interaction.MsgBox(text, MsgBoxStyle.OkOnly, null); IL_DE: num2 = 16; string name = this.TreeView1.SelectedNode.Name; IL_F3: num2 = 17; checked { int num3 = (int)this.inStr_n(name, "\\"); IL_106: num2 = 18; string str3 = Conversions.ToString(Strings.Chr(64 + num3 + 1)); IL_11C: num2 = 19; string key = name + str3 + NF.Time2String() + "\\"; IL_134: num2 = 20; this.TreeView1.SelectedNode.Nodes.Add(key, text); IL_150: num2 = 21; this.Button4.Enabled = true; IL_15F: num2 = 22; if (Information.Err().Number == 0) { goto IL_189; } IL_174: num2 = 23; Interaction.MsgBox(Information.Err().Description, MsgBoxStyle.OkOnly, null); IL_189: goto IL_244; IL_18E :; } int num4 = num5 + 1; num5 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num4); IL_1FE: goto IL_239; IL_200: num5 = num2; if (num <= -2) { goto IL_18E; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); IL_216 :; } catch when(endfilter(obj is Exception & num != 0 & num5 == 0)) { Exception ex = (Exception)obj2; goto IL_200; } IL_239: throw ProjectData.CreateProjectError(-2146828237); IL_244: if (num5 != 0) { ProjectData.ClearProjectError(); } }
private void Button1_Click(object sender, EventArgs e) { int num; int num4; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; string text = Interaction.InputBox("请输入你要添加的分类:", "田草CAD工具箱.Net版", "", -1, -1); IL_22: num2 = 3; string key = "A" + NF.Time2String() + "\\"; IL_39: num2 = 4; if (Operators.CompareString(text, "", false) != 0) { goto IL_51; } IL_4C: goto IL_F0; IL_51: num2 = 7; this.TreeView1.Nodes.Add(key, text); IL_66: num2 = 8; this.Button4.Enabled = true; IL_74: goto IL_F0; IL_76: int num3 = num4 + 1; num4 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3); IL_AA: goto IL_E5; IL_AC: num4 = num2; if (num <= -2) { goto IL_76; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); IL_C2 :; } catch when(endfilter(obj is Exception & num != 0 & num4 == 0)) { Exception ex = (Exception)obj2; goto IL_AC; } IL_E5: throw ProjectData.CreateProjectError(-2146828237); IL_F0: if (num4 != 0) { ProjectData.ClearProjectError(); } }