shim 7 years ago
parent
commit
ce99cfb9ce
2 changed files with 623 additions and 2 deletions
  1. 490 1
      UAS_DLLTest/Form1.Designer.cs
  2. 133 1
      UAS_DLLTest/Form1.cs

+ 490 - 1
UAS_DLLTest/Form1.Designer.cs

@@ -28,12 +28,501 @@
         /// </summary>
         private void InitializeComponent()
         {
-            this.components = new System.ComponentModel.Container();
+            this.groupBoxwithborder3 = new UAS_DLLTest.GroupBoxwithborder();
+            this.operateResult = new System.Windows.Forms.RichTextBox();
+            this.groupBoxwithborder2 = new UAS_DLLTest.GroupBoxwithborder();
+            this.textBox9 = new System.Windows.Forms.TextBox();
+            this.textBox8 = new System.Windows.Forms.TextBox();
+            this.textBox7 = new System.Windows.Forms.TextBox();
+            this.textBox6 = new System.Windows.Forms.TextBox();
+            this.textBox5 = new System.Windows.Forms.TextBox();
+            this.textBox4 = new System.Windows.Forms.TextBox();
+            this.textBox3 = new System.Windows.Forms.TextBox();
+            this.textBox2 = new System.Windows.Forms.TextBox();
+            this.textBox1 = new System.Windows.Forms.TextBox();
+            this.label9 = new System.Windows.Forms.Label();
+            this.label8 = new System.Windows.Forms.Label();
+            this.label7 = new System.Windows.Forms.Label();
+            this.label6 = new System.Windows.Forms.Label();
+            this.label5 = new System.Windows.Forms.Label();
+            this.label4 = new System.Windows.Forms.Label();
+            this.label3 = new System.Windows.Forms.Label();
+            this.label2 = new System.Windows.Forms.Label();
+            this.label1 = new System.Windows.Forms.Label();
+            this.clearResult = new System.Windows.Forms.CheckBox();
+            this.clearPara = new System.Windows.Forms.CheckBox();
+            this.clear = new System.Windows.Forms.Button();
+            this.confirm = new System.Windows.Forms.Button();
+            this.groupBoxwithborder1 = new UAS_DLLTest.GroupBoxwithborder();
+            this.SetPcbaData = new System.Windows.Forms.RadioButton();
+            this.GetMobileAllInfo = new System.Windows.Forms.RadioButton();
+            this.SetTestDetail = new System.Windows.Forms.RadioButton();
+            this.GetRcardMOInfo = new System.Windows.Forms.RadioButton();
+            this.SetMobileData = new System.Windows.Forms.RadioButton();
+            this.SetIMEIInfo = new System.Windows.Forms.RadioButton();
+            this.SetAddressInfo = new System.Windows.Forms.RadioButton();
+            this.CheckRoutePassed = new System.Windows.Forms.RadioButton();
+            this.GoMo = new System.Windows.Forms.RadioButton();
+            this.GetMEIOrNetCodeRange = new System.Windows.Forms.RadioButton();
+            this.GetAddressRangeByMO = new System.Windows.Forms.RadioButton();
+            this.CheckUserAndResourcePassed = new System.Windows.Forms.RadioButton();
+            this.groupBoxwithborder3.SuspendLayout();
+            this.groupBoxwithborder2.SuspendLayout();
+            this.groupBoxwithborder1.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // groupBoxwithborder3
+            // 
+            this.groupBoxwithborder3.BorderColor = System.Drawing.Color.Black;
+            this.groupBoxwithborder3.Controls.Add(this.operateResult);
+            this.groupBoxwithborder3.Location = new System.Drawing.Point(34, 495);
+            this.groupBoxwithborder3.Name = "groupBoxwithborder3";
+            this.groupBoxwithborder3.Size = new System.Drawing.Size(1219, 176);
+            this.groupBoxwithborder3.TabIndex = 2;
+            this.groupBoxwithborder3.TabStop = false;
+            this.groupBoxwithborder3.Text = "Result";
+            this.groupBoxwithborder3.TextColor = System.Drawing.Color.Black;
+            // 
+            // operateResult
+            // 
+            this.operateResult.Location = new System.Drawing.Point(17, 27);
+            this.operateResult.Name = "operateResult";
+            this.operateResult.Size = new System.Drawing.Size(1185, 143);
+            this.operateResult.TabIndex = 0;
+            this.operateResult.Text = "";
+            // 
+            // groupBoxwithborder2
+            // 
+            this.groupBoxwithborder2.BorderColor = System.Drawing.Color.Black;
+            this.groupBoxwithborder2.Controls.Add(this.textBox9);
+            this.groupBoxwithborder2.Controls.Add(this.textBox8);
+            this.groupBoxwithborder2.Controls.Add(this.textBox7);
+            this.groupBoxwithborder2.Controls.Add(this.textBox6);
+            this.groupBoxwithborder2.Controls.Add(this.textBox5);
+            this.groupBoxwithborder2.Controls.Add(this.textBox4);
+            this.groupBoxwithborder2.Controls.Add(this.textBox3);
+            this.groupBoxwithborder2.Controls.Add(this.textBox2);
+            this.groupBoxwithborder2.Controls.Add(this.textBox1);
+            this.groupBoxwithborder2.Controls.Add(this.label9);
+            this.groupBoxwithborder2.Controls.Add(this.label8);
+            this.groupBoxwithborder2.Controls.Add(this.label7);
+            this.groupBoxwithborder2.Controls.Add(this.label6);
+            this.groupBoxwithborder2.Controls.Add(this.label5);
+            this.groupBoxwithborder2.Controls.Add(this.label4);
+            this.groupBoxwithborder2.Controls.Add(this.label3);
+            this.groupBoxwithborder2.Controls.Add(this.label2);
+            this.groupBoxwithborder2.Controls.Add(this.label1);
+            this.groupBoxwithborder2.Controls.Add(this.clearResult);
+            this.groupBoxwithborder2.Controls.Add(this.clearPara);
+            this.groupBoxwithborder2.Controls.Add(this.clear);
+            this.groupBoxwithborder2.Controls.Add(this.confirm);
+            this.groupBoxwithborder2.Location = new System.Drawing.Point(34, 201);
+            this.groupBoxwithborder2.Name = "groupBoxwithborder2";
+            this.groupBoxwithborder2.Size = new System.Drawing.Size(1219, 275);
+            this.groupBoxwithborder2.TabIndex = 1;
+            this.groupBoxwithborder2.TabStop = false;
+            this.groupBoxwithborder2.Text = "Parameter";
+            this.groupBoxwithborder2.TextColor = System.Drawing.Color.Black;
+            // 
+            // textBox9
+            // 
+            this.textBox9.Location = new System.Drawing.Point(908, 108);
+            this.textBox9.Name = "textBox9";
+            this.textBox9.Size = new System.Drawing.Size(181, 28);
+            this.textBox9.TabIndex = 21;
+            // 
+            // textBox8
+            // 
+            this.textBox8.Location = new System.Drawing.Point(543, 105);
+            this.textBox8.Name = "textBox8";
+            this.textBox8.Size = new System.Drawing.Size(177, 28);
+            this.textBox8.TabIndex = 20;
+            // 
+            // textBox7
+            // 
+            this.textBox7.Location = new System.Drawing.Point(125, 105);
+            this.textBox7.Name = "textBox7";
+            this.textBox7.Size = new System.Drawing.Size(191, 28);
+            this.textBox7.TabIndex = 19;
+            // 
+            // textBox6
+            // 
+            this.textBox6.Location = new System.Drawing.Point(908, 60);
+            this.textBox6.Name = "textBox6";
+            this.textBox6.Size = new System.Drawing.Size(181, 28);
+            this.textBox6.TabIndex = 18;
+            // 
+            // textBox5
+            // 
+            this.textBox5.Location = new System.Drawing.Point(543, 60);
+            this.textBox5.Name = "textBox5";
+            this.textBox5.Size = new System.Drawing.Size(177, 28);
+            this.textBox5.TabIndex = 17;
+            // 
+            // textBox4
+            // 
+            this.textBox4.Location = new System.Drawing.Point(125, 60);
+            this.textBox4.Name = "textBox4";
+            this.textBox4.Size = new System.Drawing.Size(191, 28);
+            this.textBox4.TabIndex = 16;
+            // 
+            // textBox3
+            // 
+            this.textBox3.Location = new System.Drawing.Point(908, 16);
+            this.textBox3.Name = "textBox3";
+            this.textBox3.Size = new System.Drawing.Size(181, 28);
+            this.textBox3.TabIndex = 15;
+            // 
+            // textBox2
+            // 
+            this.textBox2.Location = new System.Drawing.Point(543, 17);
+            this.textBox2.Name = "textBox2";
+            this.textBox2.Size = new System.Drawing.Size(177, 28);
+            this.textBox2.TabIndex = 14;
+            // 
+            // textBox1
+            // 
+            this.textBox1.Location = new System.Drawing.Point(125, 17);
+            this.textBox1.Name = "textBox1";
+            this.textBox1.Size = new System.Drawing.Size(191, 28);
+            this.textBox1.TabIndex = 13;
+            // 
+            // label9
+            // 
+            this.label9.AutoSize = true;
+            this.label9.Location = new System.Drawing.Point(815, 115);
+            this.label9.Name = "label9";
+            this.label9.Size = new System.Drawing.Size(62, 18);
+            this.label9.TabIndex = 12;
+            this.label9.Text = "label9";
+            // 
+            // label8
+            // 
+            this.label8.AutoSize = true;
+            this.label8.Location = new System.Drawing.Point(450, 108);
+            this.label8.Name = "label8";
+            this.label8.Size = new System.Drawing.Size(62, 18);
+            this.label8.TabIndex = 11;
+            this.label8.Text = "label8";
+            // 
+            // label7
+            // 
+            this.label7.AutoSize = true;
+            this.label7.Location = new System.Drawing.Point(40, 111);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(62, 18);
+            this.label7.TabIndex = 10;
+            this.label7.Text = "label7";
+            // 
+            // label6
+            // 
+            this.label6.AutoSize = true;
+            this.label6.Location = new System.Drawing.Point(815, 70);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(62, 18);
+            this.label6.TabIndex = 9;
+            this.label6.Text = "label6";
+            // 
+            // label5
+            // 
+            this.label5.AutoSize = true;
+            this.label5.Location = new System.Drawing.Point(450, 63);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(62, 18);
+            this.label5.TabIndex = 8;
+            this.label5.Text = "label5";
+            // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Location = new System.Drawing.Point(40, 65);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(62, 18);
+            this.label4.TabIndex = 7;
+            this.label4.Text = "label4";
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Location = new System.Drawing.Point(815, 26);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(62, 18);
+            this.label3.TabIndex = 6;
+            this.label3.Text = "label3";
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Location = new System.Drawing.Point(450, 27);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(62, 18);
+            this.label2.TabIndex = 5;
+            this.label2.Text = "label2";
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Location = new System.Drawing.Point(40, 27);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(62, 18);
+            this.label1.TabIndex = 4;
+            this.label1.Text = "label1";
+            // 
+            // clearResult
+            // 
+            this.clearResult.AutoSize = true;
+            this.clearResult.Location = new System.Drawing.Point(927, 226);
+            this.clearResult.Name = "clearResult";
+            this.clearResult.Size = new System.Drawing.Size(133, 22);
+            this.clearResult.TabIndex = 3;
+            this.clearResult.Text = "clearResult";
+            this.clearResult.UseVisualStyleBackColor = true;
+            // 
+            // clearPara
+            // 
+            this.clearPara.AutoSize = true;
+            this.clearPara.Location = new System.Drawing.Point(799, 226);
+            this.clearPara.Name = "clearPara";
+            this.clearPara.Size = new System.Drawing.Size(115, 22);
+            this.clearPara.TabIndex = 2;
+            this.clearPara.Text = "clearPara";
+            this.clearPara.UseVisualStyleBackColor = true;
+            // 
+            // clear
+            // 
+            this.clear.Location = new System.Drawing.Point(593, 218);
+            this.clear.Name = "clear";
+            this.clear.Size = new System.Drawing.Size(92, 36);
+            this.clear.TabIndex = 1;
+            this.clear.Text = "clear";
+            this.clear.UseVisualStyleBackColor = true;
+            this.clear.Click += new System.EventHandler(this.clear_Click);
+            // 
+            // confirm
+            // 
+            this.confirm.Location = new System.Drawing.Point(453, 218);
+            this.confirm.Name = "confirm";
+            this.confirm.Size = new System.Drawing.Size(94, 36);
+            this.confirm.TabIndex = 0;
+            this.confirm.Text = "confirm";
+            this.confirm.UseVisualStyleBackColor = true;
+            this.confirm.Click += new System.EventHandler(this.confirm_Click);
+            // 
+            // groupBoxwithborder1
+            // 
+            this.groupBoxwithborder1.BorderColor = System.Drawing.Color.Black;
+            this.groupBoxwithborder1.Controls.Add(this.SetPcbaData);
+            this.groupBoxwithborder1.Controls.Add(this.GetMobileAllInfo);
+            this.groupBoxwithborder1.Controls.Add(this.SetTestDetail);
+            this.groupBoxwithborder1.Controls.Add(this.GetRcardMOInfo);
+            this.groupBoxwithborder1.Controls.Add(this.SetMobileData);
+            this.groupBoxwithborder1.Controls.Add(this.SetIMEIInfo);
+            this.groupBoxwithborder1.Controls.Add(this.SetAddressInfo);
+            this.groupBoxwithborder1.Controls.Add(this.CheckRoutePassed);
+            this.groupBoxwithborder1.Controls.Add(this.GoMo);
+            this.groupBoxwithborder1.Controls.Add(this.GetMEIOrNetCodeRange);
+            this.groupBoxwithborder1.Controls.Add(this.GetAddressRangeByMO);
+            this.groupBoxwithborder1.Controls.Add(this.CheckUserAndResourcePassed);
+            this.groupBoxwithborder1.Location = new System.Drawing.Point(34, 24);
+            this.groupBoxwithborder1.Name = "groupBoxwithborder1";
+            this.groupBoxwithborder1.Size = new System.Drawing.Size(1219, 151);
+            this.groupBoxwithborder1.TabIndex = 0;
+            this.groupBoxwithborder1.TabStop = false;
+            this.groupBoxwithborder1.Text = "Method";
+            this.groupBoxwithborder1.TextColor = System.Drawing.Color.Black;
+            // 
+            // SetPcbaData
+            // 
+            this.SetPcbaData.AutoSize = true;
+            this.SetPcbaData.Location = new System.Drawing.Point(440, 111);
+            this.SetPcbaData.Name = "SetPcbaData";
+            this.SetPcbaData.Size = new System.Drawing.Size(132, 22);
+            this.SetPcbaData.TabIndex = 13;
+            this.SetPcbaData.TabStop = true;
+            this.SetPcbaData.Text = "SetPcbaData";
+            this.SetPcbaData.UseVisualStyleBackColor = true;
+            // 
+            // GetMobileAllInfo
+            // 
+            this.GetMobileAllInfo.AutoSize = true;
+            this.GetMobileAllInfo.Location = new System.Drawing.Point(790, 83);
+            this.GetMobileAllInfo.Name = "GetMobileAllInfo";
+            this.GetMobileAllInfo.Size = new System.Drawing.Size(177, 22);
+            this.GetMobileAllInfo.TabIndex = 12;
+            this.GetMobileAllInfo.TabStop = true;
+            this.GetMobileAllInfo.Text = "GetMobileAllInfo";
+            this.GetMobileAllInfo.UseVisualStyleBackColor = true;
+            // 
+            // SetTestDetail
+            // 
+            this.SetTestDetail.AutoSize = true;
+            this.SetTestDetail.Location = new System.Drawing.Point(790, 55);
+            this.SetTestDetail.Name = "SetTestDetail";
+            this.SetTestDetail.Size = new System.Drawing.Size(150, 22);
+            this.SetTestDetail.TabIndex = 11;
+            this.SetTestDetail.TabStop = true;
+            this.SetTestDetail.Text = "SetTestDetail";
+            this.SetTestDetail.UseVisualStyleBackColor = true;
+            // 
+            // GetRcardMOInfo
+            // 
+            this.GetRcardMOInfo.AutoSize = true;
+            this.GetRcardMOInfo.Location = new System.Drawing.Point(790, 28);
+            this.GetRcardMOInfo.Name = "GetRcardMOInfo";
+            this.GetRcardMOInfo.Size = new System.Drawing.Size(159, 22);
+            this.GetRcardMOInfo.TabIndex = 10;
+            this.GetRcardMOInfo.TabStop = true;
+            this.GetRcardMOInfo.Text = "GetRcardMOInfo";
+            this.GetRcardMOInfo.UseVisualStyleBackColor = true;
+            // 
+            // SetMobileData
+            // 
+            this.SetMobileData.AutoSize = true;
+            this.SetMobileData.Location = new System.Drawing.Point(33, 111);
+            this.SetMobileData.Name = "SetMobileData";
+            this.SetMobileData.Size = new System.Drawing.Size(150, 22);
+            this.SetMobileData.TabIndex = 9;
+            this.SetMobileData.TabStop = true;
+            this.SetMobileData.Text = "SetMobileData";
+            this.SetMobileData.UseVisualStyleBackColor = true;
+            // 
+            // SetIMEIInfo
+            // 
+            this.SetIMEIInfo.AutoSize = true;
+            this.SetIMEIInfo.Location = new System.Drawing.Point(440, 83);
+            this.SetIMEIInfo.Name = "SetIMEIInfo";
+            this.SetIMEIInfo.Size = new System.Drawing.Size(132, 22);
+            this.SetIMEIInfo.TabIndex = 8;
+            this.SetIMEIInfo.TabStop = true;
+            this.SetIMEIInfo.Text = "SetIMEIInfo";
+            this.SetIMEIInfo.UseVisualStyleBackColor = true;
+            // 
+            // SetAddressInfo
+            // 
+            this.SetAddressInfo.AutoSize = true;
+            this.SetAddressInfo.Location = new System.Drawing.Point(440, 55);
+            this.SetAddressInfo.Name = "SetAddressInfo";
+            this.SetAddressInfo.Size = new System.Drawing.Size(159, 22);
+            this.SetAddressInfo.TabIndex = 7;
+            this.SetAddressInfo.TabStop = true;
+            this.SetAddressInfo.Text = "SetAddressInfo";
+            this.SetAddressInfo.UseVisualStyleBackColor = true;
+            // 
+            // CheckRoutePassed
+            // 
+            this.CheckRoutePassed.AutoSize = true;
+            this.CheckRoutePassed.Location = new System.Drawing.Point(440, 27);
+            this.CheckRoutePassed.Name = "CheckRoutePassed";
+            this.CheckRoutePassed.Size = new System.Drawing.Size(177, 22);
+            this.CheckRoutePassed.TabIndex = 6;
+            this.CheckRoutePassed.TabStop = true;
+            this.CheckRoutePassed.Text = "CheckRoutePassed";
+            this.CheckRoutePassed.UseVisualStyleBackColor = true;
+            // 
+            // GoMo
+            // 
+            this.GoMo.AutoSize = true;
+            this.GoMo.Location = new System.Drawing.Point(790, 111);
+            this.GoMo.Name = "GoMo";
+            this.GoMo.Size = new System.Drawing.Size(69, 22);
+            this.GoMo.TabIndex = 5;
+            this.GoMo.TabStop = true;
+            this.GoMo.Text = "GoMo";
+            this.GoMo.UseVisualStyleBackColor = true;
+            // 
+            // GetMEIOrNetCodeRange
+            // 
+            this.GetMEIOrNetCodeRange.AutoSize = true;
+            this.GetMEIOrNetCodeRange.Location = new System.Drawing.Point(33, 83);
+            this.GetMEIOrNetCodeRange.Name = "GetMEIOrNetCodeRange";
+            this.GetMEIOrNetCodeRange.Size = new System.Drawing.Size(213, 22);
+            this.GetMEIOrNetCodeRange.TabIndex = 3;
+            this.GetMEIOrNetCodeRange.TabStop = true;
+            this.GetMEIOrNetCodeRange.Text = "GetMEIOrNetCodeRange";
+            this.GetMEIOrNetCodeRange.UseVisualStyleBackColor = true;
+            // 
+            // GetAddressRangeByMO
+            // 
+            this.GetAddressRangeByMO.AutoSize = true;
+            this.GetAddressRangeByMO.Location = new System.Drawing.Point(33, 55);
+            this.GetAddressRangeByMO.Name = "GetAddressRangeByMO";
+            this.GetAddressRangeByMO.Size = new System.Drawing.Size(204, 22);
+            this.GetAddressRangeByMO.TabIndex = 2;
+            this.GetAddressRangeByMO.TabStop = true;
+            this.GetAddressRangeByMO.Text = "GetAddressRangeByMO";
+            this.GetAddressRangeByMO.UseVisualStyleBackColor = true;
+            // 
+            // CheckUserAndResourcePassed
+            // 
+            this.CheckUserAndResourcePassed.AutoSize = true;
+            this.CheckUserAndResourcePassed.Location = new System.Drawing.Point(33, 27);
+            this.CheckUserAndResourcePassed.Name = "CheckUserAndResourcePassed";
+            this.CheckUserAndResourcePassed.Size = new System.Drawing.Size(267, 22);
+            this.CheckUserAndResourcePassed.TabIndex = 1;
+            this.CheckUserAndResourcePassed.TabStop = true;
+            this.CheckUserAndResourcePassed.Text = "CheckUserAndResourcePassed";
+            this.CheckUserAndResourcePassed.UseVisualStyleBackColor = true;
+            // 
+            // Form1
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(1285, 686);
+            this.Controls.Add(this.groupBoxwithborder3);
+            this.Controls.Add(this.groupBoxwithborder2);
+            this.Controls.Add(this.groupBoxwithborder1);
+            this.Name = "Form1";
             this.Text = "Form1";
+            this.Load += new System.EventHandler(this.Form1_Load);
+            this.groupBoxwithborder3.ResumeLayout(false);
+            this.groupBoxwithborder2.ResumeLayout(false);
+            this.groupBoxwithborder2.PerformLayout();
+            this.groupBoxwithborder1.ResumeLayout(false);
+            this.groupBoxwithborder1.PerformLayout();
+            this.ResumeLayout(false);
+
         }
 
         #endregion
+
+        private GroupBoxwithborder groupBoxwithborder1;
+        private System.Windows.Forms.RadioButton SetPcbaData;
+        private System.Windows.Forms.RadioButton GetMobileAllInfo;
+        private System.Windows.Forms.RadioButton SetTestDetail;
+        private System.Windows.Forms.RadioButton GetRcardMOInfo;
+        private System.Windows.Forms.RadioButton SetMobileData;
+        private System.Windows.Forms.RadioButton SetIMEIInfo;
+        private System.Windows.Forms.RadioButton SetAddressInfo;
+        private System.Windows.Forms.RadioButton CheckRoutePassed;
+        private System.Windows.Forms.RadioButton GoMo;
+        private System.Windows.Forms.RadioButton GetMEIOrNetCodeRange;
+        private System.Windows.Forms.RadioButton GetAddressRangeByMO;
+        private System.Windows.Forms.RadioButton CheckUserAndResourcePassed;
+        private GroupBoxwithborder groupBoxwithborder2;
+        private GroupBoxwithborder groupBoxwithborder3;
+        private System.Windows.Forms.CheckBox clearResult;
+        private System.Windows.Forms.CheckBox clearPara;
+        private System.Windows.Forms.Button clear;
+        private System.Windows.Forms.Button confirm;
+        private System.Windows.Forms.TextBox textBox9;
+        private System.Windows.Forms.TextBox textBox8;
+        private System.Windows.Forms.TextBox textBox7;
+        private System.Windows.Forms.TextBox textBox6;
+        private System.Windows.Forms.TextBox textBox5;
+        private System.Windows.Forms.TextBox textBox4;
+        private System.Windows.Forms.TextBox textBox3;
+        private System.Windows.Forms.TextBox textBox2;
+        private System.Windows.Forms.TextBox textBox1;
+        private System.Windows.Forms.Label label9;
+        private System.Windows.Forms.Label label8;
+        private System.Windows.Forms.Label label7;
+        private System.Windows.Forms.Label label6;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.RichTextBox operateResult;
     }
 }
 

+ 133 - 1
UAS_DLLTest/Form1.cs

@@ -1,9 +1,11 @@
-using System;
+using BenQGuru.eMES.DLLService;
+using System;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
 using System.Drawing;
 using System.Linq;
+using System.Reflection;
 using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
@@ -12,9 +14,139 @@ namespace UAS_DLLTest
 {
     public partial class Form1 : Form
     {
+        MESHelper l;
+        Control.ControlCollection collection;
+        Control.ControlCollection groupBox2Childs;
+        ParameterInfo[] param;
+        List<string> outParams = new List<string>();
+        object[] allParams;
+        int icount = 0;
         public Form1()
         {
             InitializeComponent();
+            l = new MESHelper();
+            collection = groupBoxwithborder1.Controls;
+            groupBox2Childs = groupBoxwithborder2.Controls;
+            //监听多个radiobutton的状态
+            for (int i = 0; i < collection.Count; i++)
+            {
+                if (collection[i] is RadioButton)
+                {
+                    ((RadioButton)collection[i]).CheckedChanged+= new EventHandler(radioButton_checkChanged);
+                }
+            }
+        }
+
+        private void radioButton_checkChanged(object sender, EventArgs e)
+        {
+            for (int i = 0; i < collection.Count; i++)
+            {
+                if (((RadioButton)collection[i]).Checked) {
+                    //显示当前选中的方法的所有参数
+                    //获取所有的参数
+                    icount = 0;
+                    param = l.GetType().GetMethod(collection[i].Name).GetParameters();
+                    for (int j = 1; j < param.Length+1; j++)
+                    {
+                        Console.WriteLine("参数名:"+param[j-1].Name);
+                        //参数名i开头的才需要显示
+                        if (!param[j - 1].Name.StartsWith("o"))
+                        {
+                            icount += 1;
+                            //设置显示参数
+                            for (int k = 0; k < groupBox2Childs.Count; k++)
+                            {
+                                if (groupBox2Childs[k].Name == "label" + j)
+                                {
+                                    groupBox2Childs[k].Text = param[j - 1].Name;
+                                    groupBox2Childs[k].Visible = true;
+                                }
+                                else if (groupBox2Childs[k].Name == "textBox" + j)
+                                {
+                                    groupBox2Childs[k].Visible = true;
+                                }
+                            }
+                        }
+                    }
+                    allParams = new object[param.Length];
+                }
+            }
+        }
+
+        private void confirm_Click(object sender, EventArgs e)
+        {
+            //拿到所有已经填写的参数
+            for (int i = 0; i < groupBox2Childs.Count; i++)
+            {
+                for (int j = 1; j < allParams.Length; j++)
+                {
+                    if (j > icount)
+                    {
+                        allParams[j - 1] = new string(new char[] { });
+                    }
+                    else
+                    {
+                        if (groupBox2Childs[i].Name == "textBox" + j)
+                        {
+                            if (param[j - 1].ParameterType.ToString()!= "System.String[]")
+                            {
+                                allParams[j - 1] = ((TextBox)groupBox2Childs[i]).Text;
+                            }
+                            else
+                            {
+                                allParams[j - 1] = ((TextBox)groupBox2Childs[i]).Text.Split(',');
+                            }
+                        }
+                    }
+                }
+            }
+            //将out类型的参数放进去
+            string oResult = "";
+            //拿到需要触发的方法名
+            for (int i = 0; i < collection.Count; i++) {
+                if (((RadioButton)collection[i]).Checked)
+                {
+                    Type type = l.GetType();
+                    MethodInfo method =  type.GetMethod(((RadioButton)collection[i]).Name);
+                    var result=method.Invoke(l, allParams);
+                    oResult = result.ToString();
+                }
+            }
+            //输出out出的信息
+            operateResult.AppendText("返回值:"+oResult+",");
+            for (int i=0;i<param.Length;i++) {
+                if (param[i].Name.StartsWith("o")) {
+                    operateResult.AppendText(param[i].Name + ":" + allParams[i]+",");
+                }
+            }
+            operateResult.AppendText("\n");
+        }
+
+        private void Form1_Load(object sender, EventArgs e)
+        {
+            //设置groupBox2中所有的label和textbox不可见
+            for (int i = 0; i < groupBox2Childs.Count; i++)
+            {
+                if ((groupBox2Childs[i] is Label)||(groupBox2Childs[i] is TextBox)) {
+                    groupBox2Childs[i].Visible = false;
+                }
+            }
+        }
+
+        private void clear_Click(object sender, EventArgs e)
+        {
+            //清除信息
+            if (clearPara.Checked) {
+                for (int i=0;i<groupBox2Childs.Count;i++) {
+                    if (groupBox2Childs[i] is TextBox) {
+                        ((TextBox)groupBox2Childs[i]).Text = "";
+                    }
+                }
+            }
+            //清除日志
+            if (clearResult.Checked) {
+                operateResult.Clear();
+            }
         }
     }
 }