25103101 配置为4个串口扫码枪

This commit is contained in:
moxiliang
2025-10-31 11:56:23 +08:00
parent 5d98792d3e
commit deecfd3acb
24 changed files with 931 additions and 263 deletions

View File

@@ -31,17 +31,27 @@
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form_SaomaSet));
this.timer_ConnectStatus = new System.Windows.Forms.Timer(this.components);
this.bt_CH1Break = new System.Windows.Forms.Button();
this.label7 = new System.Windows.Forms.Label();
this.cb_CH1PortName = new System.Windows.Forms.ComboBox();
this.label11 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.cb_CH1BaudRate = new System.Windows.Forms.ComboBox();
this.lb_CH1Com_status = new System.Windows.Forms.Label();
this.bt_CH1Connect = new System.Windows.Forms.Button();
this.bt_CH1Refresh = new System.Windows.Forms.Button();
this.uiGroupBox9 = new Sunny.UI.UIGroupBox();
this.tabPage_SerialPort = new System.Windows.Forms.TabPage();
this.uiGroupBox5 = new Sunny.UI.UIGroupBox();
this.label17 = new System.Windows.Forms.Label();
this.cb_CH4PortName = new System.Windows.Forms.ComboBox();
this.label18 = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.cb_CH4BaudRate = new System.Windows.Forms.ComboBox();
this.lb_CH4Com_status = new System.Windows.Forms.Label();
this.bt_CH4Connect = new System.Windows.Forms.Button();
this.bt_CH4Break = new System.Windows.Forms.Button();
this.bt_CH4Refresh = new System.Windows.Forms.Button();
this.uiGroupBox11 = new Sunny.UI.UIGroupBox();
this.label6 = new System.Windows.Forms.Label();
this.cb_CH3PortName = new System.Windows.Forms.ComboBox();
this.label12 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.cb_CH3BaudRate = new System.Windows.Forms.ComboBox();
this.lb_CH3Com_status = new System.Windows.Forms.Label();
this.bt_CH3Connect = new System.Windows.Forms.Button();
this.bt_CH3Break = new System.Windows.Forms.Button();
this.bt_CH3Refresh = new System.Windows.Forms.Button();
this.uiGroupBox1 = new Sunny.UI.UIGroupBox();
this.label1 = new System.Windows.Forms.Label();
this.cb_CH2PortName = new System.Windows.Forms.ComboBox();
@@ -52,6 +62,16 @@
this.bt_CH2Connect = new System.Windows.Forms.Button();
this.bt_CH2Break = new System.Windows.Forms.Button();
this.bt_CH2Refresh = new System.Windows.Forms.Button();
this.uiGroupBox9 = new Sunny.UI.UIGroupBox();
this.label7 = new System.Windows.Forms.Label();
this.cb_CH1PortName = new System.Windows.Forms.ComboBox();
this.label11 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.cb_CH1BaudRate = new System.Windows.Forms.ComboBox();
this.lb_CH1Com_status = new System.Windows.Forms.Label();
this.bt_CH1Connect = new System.Windows.Forms.Button();
this.bt_CH1Break = new System.Windows.Forms.Button();
this.bt_CH1Refresh = new System.Windows.Forms.Button();
this.uiTabControlMenu1 = new Sunny.UI.UITabControlMenu();
this.tabPage_TCP = new System.Windows.Forms.TabPage();
this.uiGroupBox3 = new Sunny.UI.UIGroupBox();
@@ -74,9 +94,11 @@
this.label8 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.tb_CH1TCP_port = new System.Windows.Forms.TextBox();
this.uiGroupBox9.SuspendLayout();
this.tabPage_SerialPort.SuspendLayout();
this.uiGroupBox5.SuspendLayout();
this.uiGroupBox11.SuspendLayout();
this.uiGroupBox1.SuspendLayout();
this.uiGroupBox9.SuspendLayout();
this.uiTabControlMenu1.SuspendLayout();
this.tabPage_TCP.SuspendLayout();
this.uiGroupBox3.SuspendLayout();
@@ -87,138 +109,261 @@
//
this.timer_ConnectStatus.Tick += new System.EventHandler(this.timer_ConnectStatus_Tick);
//
// bt_CH1Break
//
this.bt_CH1Break.Location = new System.Drawing.Point(48, 379);
this.bt_CH1Break.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH1Break.Name = "bt_CH1Break";
this.bt_CH1Break.Size = new System.Drawing.Size(125, 45);
this.bt_CH1Break.TabIndex = 63;
this.bt_CH1Break.Text = "断开连接";
this.bt_CH1Break.UseVisualStyleBackColor = true;
this.bt_CH1Break.Click += new System.EventHandler(this.CodeBreak_Click);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("宋体", 12F);
this.label7.Location = new System.Drawing.Point(52, 208);
this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(87, 16);
this.label7.TabIndex = 70;
this.label7.Text = "串口状态:";
//
// cb_CH1PortName
//
this.cb_CH1PortName.FormattingEnabled = true;
this.cb_CH1PortName.Location = new System.Drawing.Point(43, 89);
this.cb_CH1PortName.Margin = new System.Windows.Forms.Padding(4);
this.cb_CH1PortName.Name = "cb_CH1PortName";
this.cb_CH1PortName.Size = new System.Drawing.Size(137, 24);
this.cb_CH1PortName.TabIndex = 67;
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(40, 66);
this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(55, 16);
this.label11.TabIndex = 65;
this.label11.Text = "端口号";
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(40, 132);
this.label15.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(55, 16);
this.label15.TabIndex = 66;
this.label15.Text = "波特率";
//
// cb_CH1BaudRate
//
this.cb_CH1BaudRate.FormattingEnabled = true;
this.cb_CH1BaudRate.Items.AddRange(new object[] {
"115200",
"9600"});
this.cb_CH1BaudRate.Location = new System.Drawing.Point(43, 156);
this.cb_CH1BaudRate.Margin = new System.Windows.Forms.Padding(4);
this.cb_CH1BaudRate.Name = "cb_CH1BaudRate";
this.cb_CH1BaudRate.Size = new System.Drawing.Size(137, 24);
this.cb_CH1BaudRate.TabIndex = 68;
//
// lb_CH1Com_status
//
this.lb_CH1Com_status.AutoSize = true;
this.lb_CH1Com_status.Font = new System.Drawing.Font("宋体", 12F);
this.lb_CH1Com_status.Location = new System.Drawing.Point(70, 237);
this.lb_CH1Com_status.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lb_CH1Com_status.Name = "lb_CH1Com_status";
this.lb_CH1Com_status.Size = new System.Drawing.Size(23, 16);
this.lb_CH1Com_status.TabIndex = 69;
this.lb_CH1Com_status.Text = "##";
//
// bt_CH1Connect
//
this.bt_CH1Connect.Location = new System.Drawing.Point(48, 275);
this.bt_CH1Connect.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH1Connect.Name = "bt_CH1Connect";
this.bt_CH1Connect.Size = new System.Drawing.Size(125, 45);
this.bt_CH1Connect.TabIndex = 62;
this.bt_CH1Connect.TabStop = false;
this.bt_CH1Connect.Text = "连接串口";
this.bt_CH1Connect.UseVisualStyleBackColor = true;
this.bt_CH1Connect.Click += new System.EventHandler(this.CodeCon_Click);
//
// bt_CH1Refresh
//
this.bt_CH1Refresh.Location = new System.Drawing.Point(48, 327);
this.bt_CH1Refresh.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH1Refresh.Name = "bt_CH1Refresh";
this.bt_CH1Refresh.Size = new System.Drawing.Size(125, 45);
this.bt_CH1Refresh.TabIndex = 64;
this.bt_CH1Refresh.Text = "刷新串口";
this.bt_CH1Refresh.UseVisualStyleBackColor = true;
this.bt_CH1Refresh.Click += new System.EventHandler(this.CodeRefresh_Click);
//
// uiGroupBox9
//
this.uiGroupBox9.Controls.Add(this.label7);
this.uiGroupBox9.Controls.Add(this.cb_CH1PortName);
this.uiGroupBox9.Controls.Add(this.label11);
this.uiGroupBox9.Controls.Add(this.label15);
this.uiGroupBox9.Controls.Add(this.cb_CH1BaudRate);
this.uiGroupBox9.Controls.Add(this.lb_CH1Com_status);
this.uiGroupBox9.Controls.Add(this.bt_CH1Connect);
this.uiGroupBox9.Controls.Add(this.bt_CH1Break);
this.uiGroupBox9.Controls.Add(this.bt_CH1Refresh);
this.uiGroupBox9.FillColor = System.Drawing.Color.Transparent;
this.uiGroupBox9.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiGroupBox9.Location = new System.Drawing.Point(22, 5);
this.uiGroupBox9.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiGroupBox9.MinimumSize = new System.Drawing.Size(1, 1);
this.uiGroupBox9.Name = "uiGroupBox9";
this.uiGroupBox9.Padding = new System.Windows.Forms.Padding(0, 32, 0, 0);
this.uiGroupBox9.Size = new System.Drawing.Size(221, 490);
this.uiGroupBox9.Style = Sunny.UI.UIStyle.Custom;
this.uiGroupBox9.TabIndex = 2;
this.uiGroupBox9.Text = "条码枪1串口设置";
this.uiGroupBox9.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
//
// tabPage_SerialPort
//
this.tabPage_SerialPort.BackColor = System.Drawing.Color.LightBlue;
this.tabPage_SerialPort.Controls.Add(this.uiGroupBox5);
this.tabPage_SerialPort.Controls.Add(this.uiGroupBox11);
this.tabPage_SerialPort.Controls.Add(this.uiGroupBox1);
this.tabPage_SerialPort.Controls.Add(this.uiGroupBox9);
this.tabPage_SerialPort.Location = new System.Drawing.Point(201, 0);
this.tabPage_SerialPort.Name = "tabPage_SerialPort";
this.tabPage_SerialPort.Size = new System.Drawing.Size(835, 581);
this.tabPage_SerialPort.Size = new System.Drawing.Size(1015, 581);
this.tabPage_SerialPort.TabIndex = 2;
this.tabPage_SerialPort.Text = "串口扫码枪设置";
//
// uiGroupBox5
//
this.uiGroupBox5.Controls.Add(this.label17);
this.uiGroupBox5.Controls.Add(this.cb_CH4PortName);
this.uiGroupBox5.Controls.Add(this.label18);
this.uiGroupBox5.Controls.Add(this.label19);
this.uiGroupBox5.Controls.Add(this.cb_CH4BaudRate);
this.uiGroupBox5.Controls.Add(this.lb_CH4Com_status);
this.uiGroupBox5.Controls.Add(this.bt_CH4Connect);
this.uiGroupBox5.Controls.Add(this.bt_CH4Break);
this.uiGroupBox5.Controls.Add(this.bt_CH4Refresh);
this.uiGroupBox5.FillColor = System.Drawing.Color.Transparent;
this.uiGroupBox5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiGroupBox5.Location = new System.Drawing.Point(662, 16);
this.uiGroupBox5.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiGroupBox5.MinimumSize = new System.Drawing.Size(1, 1);
this.uiGroupBox5.Name = "uiGroupBox5";
this.uiGroupBox5.Padding = new System.Windows.Forms.Padding(0, 32, 0, 0);
this.uiGroupBox5.Size = new System.Drawing.Size(195, 408);
this.uiGroupBox5.Style = Sunny.UI.UIStyle.Custom;
this.uiGroupBox5.TabIndex = 76;
this.uiGroupBox5.Text = "CH4扫码枪";
this.uiGroupBox5.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
//
// label17
//
this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("宋体", 12F);
this.label17.Location = new System.Drawing.Point(37, 177);
this.label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(87, 16);
this.label17.TabIndex = 70;
this.label17.Text = "串口状态:";
//
// cb_CH4PortName
//
this.cb_CH4PortName.FormattingEnabled = true;
this.cb_CH4PortName.Location = new System.Drawing.Point(28, 58);
this.cb_CH4PortName.Margin = new System.Windows.Forms.Padding(4);
this.cb_CH4PortName.Name = "cb_CH4PortName";
this.cb_CH4PortName.Size = new System.Drawing.Size(137, 24);
this.cb_CH4PortName.TabIndex = 67;
//
// label18
//
this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(25, 35);
this.label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(55, 16);
this.label18.TabIndex = 65;
this.label18.Text = "端口号";
//
// label19
//
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(25, 101);
this.label19.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(55, 16);
this.label19.TabIndex = 66;
this.label19.Text = "波特率";
//
// cb_CH4BaudRate
//
this.cb_CH4BaudRate.FormattingEnabled = true;
this.cb_CH4BaudRate.Items.AddRange(new object[] {
"115200",
"9600"});
this.cb_CH4BaudRate.Location = new System.Drawing.Point(28, 125);
this.cb_CH4BaudRate.Margin = new System.Windows.Forms.Padding(4);
this.cb_CH4BaudRate.Name = "cb_CH4BaudRate";
this.cb_CH4BaudRate.Size = new System.Drawing.Size(137, 24);
this.cb_CH4BaudRate.TabIndex = 68;
//
// lb_CH4Com_status
//
this.lb_CH4Com_status.AutoSize = true;
this.lb_CH4Com_status.Font = new System.Drawing.Font("宋体", 12F);
this.lb_CH4Com_status.Location = new System.Drawing.Point(55, 206);
this.lb_CH4Com_status.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lb_CH4Com_status.Name = "lb_CH4Com_status";
this.lb_CH4Com_status.Size = new System.Drawing.Size(23, 16);
this.lb_CH4Com_status.TabIndex = 69;
this.lb_CH4Com_status.Text = "##";
//
// bt_CH4Connect
//
this.bt_CH4Connect.Location = new System.Drawing.Point(33, 244);
this.bt_CH4Connect.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH4Connect.Name = "bt_CH4Connect";
this.bt_CH4Connect.Size = new System.Drawing.Size(125, 45);
this.bt_CH4Connect.TabIndex = 62;
this.bt_CH4Connect.TabStop = false;
this.bt_CH4Connect.Text = "连接串口";
this.bt_CH4Connect.UseVisualStyleBackColor = true;
this.bt_CH4Connect.Click += new System.EventHandler(this.bt_CH4Connect_Click);
//
// bt_CH4Break
//
this.bt_CH4Break.Location = new System.Drawing.Point(33, 348);
this.bt_CH4Break.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH4Break.Name = "bt_CH4Break";
this.bt_CH4Break.Size = new System.Drawing.Size(125, 45);
this.bt_CH4Break.TabIndex = 63;
this.bt_CH4Break.Text = "断开连接";
this.bt_CH4Break.UseVisualStyleBackColor = true;
this.bt_CH4Break.Click += new System.EventHandler(this.bt_CH4Break_Click);
//
// bt_CH4Refresh
//
this.bt_CH4Refresh.Location = new System.Drawing.Point(33, 296);
this.bt_CH4Refresh.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH4Refresh.Name = "bt_CH4Refresh";
this.bt_CH4Refresh.Size = new System.Drawing.Size(125, 45);
this.bt_CH4Refresh.TabIndex = 64;
this.bt_CH4Refresh.Text = "刷新串口";
this.bt_CH4Refresh.UseVisualStyleBackColor = true;
this.bt_CH4Refresh.Click += new System.EventHandler(this.bt_CH4Refresh_Click);
//
// uiGroupBox11
//
this.uiGroupBox11.Controls.Add(this.label6);
this.uiGroupBox11.Controls.Add(this.cb_CH3PortName);
this.uiGroupBox11.Controls.Add(this.label12);
this.uiGroupBox11.Controls.Add(this.label14);
this.uiGroupBox11.Controls.Add(this.cb_CH3BaudRate);
this.uiGroupBox11.Controls.Add(this.lb_CH3Com_status);
this.uiGroupBox11.Controls.Add(this.bt_CH3Connect);
this.uiGroupBox11.Controls.Add(this.bt_CH3Break);
this.uiGroupBox11.Controls.Add(this.bt_CH3Refresh);
this.uiGroupBox11.FillColor = System.Drawing.Color.Transparent;
this.uiGroupBox11.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiGroupBox11.Location = new System.Drawing.Point(448, 16);
this.uiGroupBox11.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiGroupBox11.MinimumSize = new System.Drawing.Size(1, 1);
this.uiGroupBox11.Name = "uiGroupBox11";
this.uiGroupBox11.Padding = new System.Windows.Forms.Padding(0, 32, 0, 0);
this.uiGroupBox11.Size = new System.Drawing.Size(195, 408);
this.uiGroupBox11.Style = Sunny.UI.UIStyle.Custom;
this.uiGroupBox11.TabIndex = 74;
this.uiGroupBox11.Text = "CH3扫码枪";
this.uiGroupBox11.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("宋体", 12F);
this.label6.Location = new System.Drawing.Point(37, 177);
this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(87, 16);
this.label6.TabIndex = 70;
this.label6.Text = "串口状态:";
//
// cb_CH3PortName
//
this.cb_CH3PortName.FormattingEnabled = true;
this.cb_CH3PortName.Location = new System.Drawing.Point(28, 58);
this.cb_CH3PortName.Margin = new System.Windows.Forms.Padding(4);
this.cb_CH3PortName.Name = "cb_CH3PortName";
this.cb_CH3PortName.Size = new System.Drawing.Size(137, 24);
this.cb_CH3PortName.TabIndex = 67;
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(25, 35);
this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(55, 16);
this.label12.TabIndex = 65;
this.label12.Text = "端口号";
//
// label14
//
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(25, 101);
this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(55, 16);
this.label14.TabIndex = 66;
this.label14.Text = "波特率";
//
// cb_CH3BaudRate
//
this.cb_CH3BaudRate.FormattingEnabled = true;
this.cb_CH3BaudRate.Items.AddRange(new object[] {
"115200",
"9600"});
this.cb_CH3BaudRate.Location = new System.Drawing.Point(28, 125);
this.cb_CH3BaudRate.Margin = new System.Windows.Forms.Padding(4);
this.cb_CH3BaudRate.Name = "cb_CH3BaudRate";
this.cb_CH3BaudRate.Size = new System.Drawing.Size(137, 24);
this.cb_CH3BaudRate.TabIndex = 68;
//
// lb_CH3Com_status
//
this.lb_CH3Com_status.AutoSize = true;
this.lb_CH3Com_status.Font = new System.Drawing.Font("宋体", 12F);
this.lb_CH3Com_status.Location = new System.Drawing.Point(55, 206);
this.lb_CH3Com_status.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lb_CH3Com_status.Name = "lb_CH3Com_status";
this.lb_CH3Com_status.Size = new System.Drawing.Size(23, 16);
this.lb_CH3Com_status.TabIndex = 69;
this.lb_CH3Com_status.Text = "##";
//
// bt_CH3Connect
//
this.bt_CH3Connect.Location = new System.Drawing.Point(33, 244);
this.bt_CH3Connect.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH3Connect.Name = "bt_CH3Connect";
this.bt_CH3Connect.Size = new System.Drawing.Size(125, 45);
this.bt_CH3Connect.TabIndex = 62;
this.bt_CH3Connect.TabStop = false;
this.bt_CH3Connect.Text = "连接串口";
this.bt_CH3Connect.UseVisualStyleBackColor = true;
this.bt_CH3Connect.Click += new System.EventHandler(this.bt_CH3Connect_Click);
//
// bt_CH3Break
//
this.bt_CH3Break.Location = new System.Drawing.Point(33, 348);
this.bt_CH3Break.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH3Break.Name = "bt_CH3Break";
this.bt_CH3Break.Size = new System.Drawing.Size(125, 45);
this.bt_CH3Break.TabIndex = 63;
this.bt_CH3Break.Text = "断开连接";
this.bt_CH3Break.UseVisualStyleBackColor = true;
this.bt_CH3Break.Click += new System.EventHandler(this.bt_CH3Break_Click);
//
// bt_CH3Refresh
//
this.bt_CH3Refresh.Location = new System.Drawing.Point(33, 296);
this.bt_CH3Refresh.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH3Refresh.Name = "bt_CH3Refresh";
this.bt_CH3Refresh.Size = new System.Drawing.Size(125, 45);
this.bt_CH3Refresh.TabIndex = 64;
this.bt_CH3Refresh.Text = "刷新串口";
this.bt_CH3Refresh.UseVisualStyleBackColor = true;
this.bt_CH3Refresh.Click += new System.EventHandler(this.bt_CH3Refresh_Click);
//
// uiGroupBox1
//
this.uiGroupBox1.Controls.Add(this.label1);
@@ -232,23 +377,22 @@
this.uiGroupBox1.Controls.Add(this.bt_CH2Refresh);
this.uiGroupBox1.FillColor = System.Drawing.Color.Transparent;
this.uiGroupBox1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiGroupBox1.Location = new System.Drawing.Point(264, 5);
this.uiGroupBox1.Location = new System.Drawing.Point(232, 16);
this.uiGroupBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiGroupBox1.MinimumSize = new System.Drawing.Size(1, 1);
this.uiGroupBox1.Name = "uiGroupBox1";
this.uiGroupBox1.Padding = new System.Windows.Forms.Padding(0, 32, 0, 0);
this.uiGroupBox1.Size = new System.Drawing.Size(221, 490);
this.uiGroupBox1.Size = new System.Drawing.Size(199, 408);
this.uiGroupBox1.Style = Sunny.UI.UIStyle.Custom;
this.uiGroupBox1.TabIndex = 71;
this.uiGroupBox1.Text = "扫码枪2串口设置";
this.uiGroupBox1.TabIndex = 75;
this.uiGroupBox1.Text = "CH2扫码枪";
this.uiGroupBox1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
this.uiGroupBox1.Visible = false;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 12F);
this.label1.Location = new System.Drawing.Point(52, 208);
this.label1.Location = new System.Drawing.Point(40, 177);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(87, 16);
@@ -258,7 +402,7 @@
// cb_CH2PortName
//
this.cb_CH2PortName.FormattingEnabled = true;
this.cb_CH2PortName.Location = new System.Drawing.Point(43, 89);
this.cb_CH2PortName.Location = new System.Drawing.Point(31, 58);
this.cb_CH2PortName.Margin = new System.Windows.Forms.Padding(4);
this.cb_CH2PortName.Name = "cb_CH2PortName";
this.cb_CH2PortName.Size = new System.Drawing.Size(137, 24);
@@ -267,7 +411,7 @@
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(40, 66);
this.label2.Location = new System.Drawing.Point(28, 35);
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(55, 16);
@@ -277,7 +421,7 @@
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(40, 132);
this.label3.Location = new System.Drawing.Point(28, 101);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(55, 16);
@@ -290,7 +434,7 @@
this.cb_CH2BaudRate.Items.AddRange(new object[] {
"115200",
"9600"});
this.cb_CH2BaudRate.Location = new System.Drawing.Point(43, 156);
this.cb_CH2BaudRate.Location = new System.Drawing.Point(31, 125);
this.cb_CH2BaudRate.Margin = new System.Windows.Forms.Padding(4);
this.cb_CH2BaudRate.Name = "cb_CH2BaudRate";
this.cb_CH2BaudRate.Size = new System.Drawing.Size(137, 24);
@@ -300,7 +444,7 @@
//
this.lb_CH2Com_status.AutoSize = true;
this.lb_CH2Com_status.Font = new System.Drawing.Font("宋体", 12F);
this.lb_CH2Com_status.Location = new System.Drawing.Point(71, 237);
this.lb_CH2Com_status.Location = new System.Drawing.Point(59, 206);
this.lb_CH2Com_status.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lb_CH2Com_status.Name = "lb_CH2Com_status";
this.lb_CH2Com_status.Size = new System.Drawing.Size(23, 16);
@@ -309,7 +453,7 @@
//
// bt_CH2Connect
//
this.bt_CH2Connect.Location = new System.Drawing.Point(48, 274);
this.bt_CH2Connect.Location = new System.Drawing.Point(36, 243);
this.bt_CH2Connect.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH2Connect.Name = "bt_CH2Connect";
this.bt_CH2Connect.Size = new System.Drawing.Size(125, 45);
@@ -321,7 +465,7 @@
//
// bt_CH2Break
//
this.bt_CH2Break.Location = new System.Drawing.Point(48, 379);
this.bt_CH2Break.Location = new System.Drawing.Point(36, 348);
this.bt_CH2Break.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH2Break.Name = "bt_CH2Break";
this.bt_CH2Break.Size = new System.Drawing.Size(125, 45);
@@ -332,7 +476,7 @@
//
// bt_CH2Refresh
//
this.bt_CH2Refresh.Location = new System.Drawing.Point(48, 327);
this.bt_CH2Refresh.Location = new System.Drawing.Point(36, 296);
this.bt_CH2Refresh.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH2Refresh.Name = "bt_CH2Refresh";
this.bt_CH2Refresh.Size = new System.Drawing.Size(125, 45);
@@ -341,6 +485,127 @@
this.bt_CH2Refresh.UseVisualStyleBackColor = true;
this.bt_CH2Refresh.Click += new System.EventHandler(this.CH2CodeRefresh_Click);
//
// uiGroupBox9
//
this.uiGroupBox9.Controls.Add(this.label7);
this.uiGroupBox9.Controls.Add(this.cb_CH1PortName);
this.uiGroupBox9.Controls.Add(this.label11);
this.uiGroupBox9.Controls.Add(this.label15);
this.uiGroupBox9.Controls.Add(this.cb_CH1BaudRate);
this.uiGroupBox9.Controls.Add(this.lb_CH1Com_status);
this.uiGroupBox9.Controls.Add(this.bt_CH1Connect);
this.uiGroupBox9.Controls.Add(this.bt_CH1Break);
this.uiGroupBox9.Controls.Add(this.bt_CH1Refresh);
this.uiGroupBox9.FillColor = System.Drawing.Color.Transparent;
this.uiGroupBox9.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiGroupBox9.Location = new System.Drawing.Point(20, 16);
this.uiGroupBox9.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiGroupBox9.MinimumSize = new System.Drawing.Size(1, 1);
this.uiGroupBox9.Name = "uiGroupBox9";
this.uiGroupBox9.Padding = new System.Windows.Forms.Padding(0, 32, 0, 0);
this.uiGroupBox9.Size = new System.Drawing.Size(195, 408);
this.uiGroupBox9.Style = Sunny.UI.UIStyle.Custom;
this.uiGroupBox9.TabIndex = 73;
this.uiGroupBox9.Text = "CH1扫码枪";
this.uiGroupBox9.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("宋体", 12F);
this.label7.Location = new System.Drawing.Point(37, 177);
this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(87, 16);
this.label7.TabIndex = 70;
this.label7.Text = "串口状态:";
//
// cb_CH1PortName
//
this.cb_CH1PortName.FormattingEnabled = true;
this.cb_CH1PortName.Location = new System.Drawing.Point(28, 58);
this.cb_CH1PortName.Margin = new System.Windows.Forms.Padding(4);
this.cb_CH1PortName.Name = "cb_CH1PortName";
this.cb_CH1PortName.Size = new System.Drawing.Size(137, 24);
this.cb_CH1PortName.TabIndex = 67;
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(25, 35);
this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(55, 16);
this.label11.TabIndex = 65;
this.label11.Text = "端口号";
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(25, 101);
this.label15.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(55, 16);
this.label15.TabIndex = 66;
this.label15.Text = "波特率";
//
// cb_CH1BaudRate
//
this.cb_CH1BaudRate.FormattingEnabled = true;
this.cb_CH1BaudRate.Items.AddRange(new object[] {
"115200",
"9600"});
this.cb_CH1BaudRate.Location = new System.Drawing.Point(28, 125);
this.cb_CH1BaudRate.Margin = new System.Windows.Forms.Padding(4);
this.cb_CH1BaudRate.Name = "cb_CH1BaudRate";
this.cb_CH1BaudRate.Size = new System.Drawing.Size(137, 24);
this.cb_CH1BaudRate.TabIndex = 68;
//
// lb_CH1Com_status
//
this.lb_CH1Com_status.AutoSize = true;
this.lb_CH1Com_status.Font = new System.Drawing.Font("宋体", 12F);
this.lb_CH1Com_status.Location = new System.Drawing.Point(55, 206);
this.lb_CH1Com_status.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lb_CH1Com_status.Name = "lb_CH1Com_status";
this.lb_CH1Com_status.Size = new System.Drawing.Size(23, 16);
this.lb_CH1Com_status.TabIndex = 69;
this.lb_CH1Com_status.Text = "##";
//
// bt_CH1Connect
//
this.bt_CH1Connect.Location = new System.Drawing.Point(33, 244);
this.bt_CH1Connect.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH1Connect.Name = "bt_CH1Connect";
this.bt_CH1Connect.Size = new System.Drawing.Size(125, 45);
this.bt_CH1Connect.TabIndex = 62;
this.bt_CH1Connect.TabStop = false;
this.bt_CH1Connect.Text = "连接串口";
this.bt_CH1Connect.UseVisualStyleBackColor = true;
this.bt_CH1Connect.Click += new System.EventHandler(this.CodeCon_Click);
//
// bt_CH1Break
//
this.bt_CH1Break.Location = new System.Drawing.Point(33, 348);
this.bt_CH1Break.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH1Break.Name = "bt_CH1Break";
this.bt_CH1Break.Size = new System.Drawing.Size(125, 45);
this.bt_CH1Break.TabIndex = 63;
this.bt_CH1Break.Text = "断开连接";
this.bt_CH1Break.UseVisualStyleBackColor = true;
this.bt_CH1Break.Click += new System.EventHandler(this.CodeBreak_Click);
//
// bt_CH1Refresh
//
this.bt_CH1Refresh.Location = new System.Drawing.Point(33, 296);
this.bt_CH1Refresh.Margin = new System.Windows.Forms.Padding(4);
this.bt_CH1Refresh.Name = "bt_CH1Refresh";
this.bt_CH1Refresh.Size = new System.Drawing.Size(125, 45);
this.bt_CH1Refresh.TabIndex = 64;
this.bt_CH1Refresh.Text = "刷新串口";
this.bt_CH1Refresh.UseVisualStyleBackColor = true;
this.bt_CH1Refresh.Click += new System.EventHandler(this.CodeRefresh_Click);
//
// uiTabControlMenu1
//
this.uiTabControlMenu1.Alignment = System.Windows.Forms.TabAlignment.Left;
@@ -354,7 +619,7 @@
this.uiTabControlMenu1.Multiline = true;
this.uiTabControlMenu1.Name = "uiTabControlMenu1";
this.uiTabControlMenu1.SelectedIndex = 0;
this.uiTabControlMenu1.Size = new System.Drawing.Size(1036, 581);
this.uiTabControlMenu1.Size = new System.Drawing.Size(1216, 581);
this.uiTabControlMenu1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.uiTabControlMenu1.Style = Sunny.UI.UIStyle.Custom;
this.uiTabControlMenu1.TabBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(144)))), ((int)(((byte)(153)))));
@@ -370,7 +635,7 @@
this.tabPage_TCP.Controls.Add(this.uiGroupBox2);
this.tabPage_TCP.Location = new System.Drawing.Point(201, 0);
this.tabPage_TCP.Name = "tabPage_TCP";
this.tabPage_TCP.Size = new System.Drawing.Size(835, 581);
this.tabPage_TCP.Size = new System.Drawing.Size(1015, 581);
this.tabPage_TCP.TabIndex = 3;
this.tabPage_TCP.Text = "网口扫码枪设置";
//
@@ -608,17 +873,21 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(845, 546);
this.ClientSize = new System.Drawing.Size(1083, 546);
this.Controls.Add(this.uiTabControlMenu1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "Form_SaomaSet";
this.Text = "扫码枪设置";
this.Load += new System.EventHandler(this.Port_Load);
this.uiGroupBox9.ResumeLayout(false);
this.uiGroupBox9.PerformLayout();
this.tabPage_SerialPort.ResumeLayout(false);
this.uiGroupBox5.ResumeLayout(false);
this.uiGroupBox5.PerformLayout();
this.uiGroupBox11.ResumeLayout(false);
this.uiGroupBox11.PerformLayout();
this.uiGroupBox1.ResumeLayout(false);
this.uiGroupBox1.PerformLayout();
this.uiGroupBox9.ResumeLayout(false);
this.uiGroupBox9.PerformLayout();
this.uiTabControlMenu1.ResumeLayout(false);
this.tabPage_TCP.ResumeLayout(false);
this.uiGroupBox3.ResumeLayout(false);
@@ -631,28 +900,8 @@
#endregion
private System.Windows.Forms.Timer timer_ConnectStatus;
private System.Windows.Forms.Button bt_CH1Break;
private System.Windows.Forms.Label label7;
public System.Windows.Forms.ComboBox cb_CH1PortName;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.ComboBox cb_CH1BaudRate;
public System.Windows.Forms.Label lb_CH1Com_status;
private System.Windows.Forms.Button bt_CH1Connect;
private System.Windows.Forms.Button bt_CH1Refresh;
private Sunny.UI.UIGroupBox uiGroupBox9;
private System.Windows.Forms.TabPage tabPage_SerialPort;
private Sunny.UI.UITabControlMenu uiTabControlMenu1;
private Sunny.UI.UIGroupBox uiGroupBox1;
private System.Windows.Forms.Label label1;
public System.Windows.Forms.ComboBox cb_CH2PortName;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ComboBox cb_CH2BaudRate;
public System.Windows.Forms.Label lb_CH2Com_status;
private System.Windows.Forms.Button bt_CH2Connect;
private System.Windows.Forms.Button bt_CH2Break;
private System.Windows.Forms.Button bt_CH2Refresh;
private System.Windows.Forms.TabPage tabPage_TCP;
private Sunny.UI.UIGroupBox uiGroupBox2;
private System.Windows.Forms.TextBox tb_CH1TCP_ip;
@@ -674,5 +923,45 @@
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox tb_CH2TCP_port;
private Sunny.UI.UIGroupBox uiGroupBox5;
private System.Windows.Forms.Label label17;
public System.Windows.Forms.ComboBox cb_CH4PortName;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.ComboBox cb_CH4BaudRate;
public System.Windows.Forms.Label lb_CH4Com_status;
private System.Windows.Forms.Button bt_CH4Connect;
private System.Windows.Forms.Button bt_CH4Break;
private System.Windows.Forms.Button bt_CH4Refresh;
private Sunny.UI.UIGroupBox uiGroupBox11;
private System.Windows.Forms.Label label6;
public System.Windows.Forms.ComboBox cb_CH3PortName;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.ComboBox cb_CH3BaudRate;
public System.Windows.Forms.Label lb_CH3Com_status;
private System.Windows.Forms.Button bt_CH3Connect;
private System.Windows.Forms.Button bt_CH3Break;
private System.Windows.Forms.Button bt_CH3Refresh;
private Sunny.UI.UIGroupBox uiGroupBox1;
private System.Windows.Forms.Label label1;
public System.Windows.Forms.ComboBox cb_CH2PortName;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ComboBox cb_CH2BaudRate;
public System.Windows.Forms.Label lb_CH2Com_status;
private System.Windows.Forms.Button bt_CH2Connect;
private System.Windows.Forms.Button bt_CH2Break;
private System.Windows.Forms.Button bt_CH2Refresh;
private Sunny.UI.UIGroupBox uiGroupBox9;
private System.Windows.Forms.Label label7;
public System.Windows.Forms.ComboBox cb_CH1PortName;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.ComboBox cb_CH1BaudRate;
public System.Windows.Forms.Label lb_CH1Com_status;
private System.Windows.Forms.Button bt_CH1Connect;
private System.Windows.Forms.Button bt_CH1Break;
private System.Windows.Forms.Button bt_CH1Refresh;
}
}