From e90b36a0fb76d9319390b5984a21a83e4748a3b3 Mon Sep 17 00:00:00 2001
From: C3032 <caoxingqi@shlanbao.cn>
Date: 星期三, 18 三月 2026 16:05:42 +0800
Subject: [PATCH] 新增:读码器功能模块,集成华睿读码器并初步实现读码功能
---
LB_SmartVision/Forms/Pages/CommunicatorPage/CommunicatorForm.Designer.cs | 100 +++++++++++++++++++++++++-------------------------
1 files changed, 50 insertions(+), 50 deletions(-)
diff --git a/LB_SmartVision/Forms/Pages/CommunicatorPage/CommunicatorForm.Designer.cs b/LB_SmartVision/Forms/Pages/CommunicatorPage/CommunicatorForm.Designer.cs
index 6f861c8..41d26a1 100644
--- a/LB_SmartVision/Forms/Pages/CommunicatorPage/CommunicatorForm.Designer.cs
+++ b/LB_SmartVision/Forms/Pages/CommunicatorPage/CommunicatorForm.Designer.cs
@@ -36,16 +36,16 @@
txtSendMsg = new TextBox();
grpSetting = new GroupBox();
txtAddress = new TextBox();
- cmbVarType = new ComboBox();
cmbType = new ComboBox();
txtIP = new TextBox();
txtPort = new TextBox();
lblPort = new Label();
- lbVarType = new Label();
cmbIP = new ComboBox();
lblType = new Label();
lblAddress = new Label();
lblIP = new Label();
+ cmbDataType = new ComboBox();
+ lblDataType = new Label();
tableLayoutPanel2 = new TableLayoutPanel();
btnRuleSend = new Button();
btnSend = new Button();
@@ -84,7 +84,7 @@
tableLayoutPanel1.Controls.Add(label3, 0, 1);
tableLayoutPanel1.Dock = DockStyle.Fill;
tableLayoutPanel1.Location = new Point(0, 0);
- tableLayoutPanel1.Margin = new Padding(4);
+ tableLayoutPanel1.Margin = new Padding(4, 4, 4, 4);
tableLayoutPanel1.Name = "tableLayoutPanel1";
tableLayoutPanel1.RowCount = 5;
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 125F));
@@ -101,9 +101,9 @@
grpReceive.Dock = DockStyle.Fill;
grpReceive.ForeColor = Color.CornflowerBlue;
grpReceive.Location = new Point(4, 242);
- grpReceive.Margin = new Padding(4);
+ grpReceive.Margin = new Padding(4, 4, 4, 4);
grpReceive.Name = "grpReceive";
- grpReceive.Padding = new Padding(4);
+ grpReceive.Padding = new Padding(4, 4, 4, 4);
grpReceive.Size = new Size(819, 156);
grpReceive.TabIndex = 30;
grpReceive.TabStop = false;
@@ -113,7 +113,7 @@
//
txtReceiveMsg.Dock = DockStyle.Fill;
txtReceiveMsg.Location = new Point(4, 21);
- txtReceiveMsg.Margin = new Padding(4);
+ txtReceiveMsg.Margin = new Padding(4, 4, 4, 4);
txtReceiveMsg.Multiline = true;
txtReceiveMsg.Name = "txtReceiveMsg";
txtReceiveMsg.ReadOnly = true;
@@ -125,7 +125,7 @@
//
txtSendMsg.Dock = DockStyle.Fill;
txtSendMsg.Location = new Point(4, 154);
- txtSendMsg.Margin = new Padding(4);
+ txtSendMsg.Margin = new Padding(4, 4, 4, 4);
txtSendMsg.Name = "txtSendMsg";
txtSendMsg.Size = new Size(819, 24);
txtSendMsg.TabIndex = 29;
@@ -134,23 +134,23 @@
//
grpSetting.BackColor = Color.FromArgb(32, 41, 50);
grpSetting.Controls.Add(txtAddress);
- grpSetting.Controls.Add(cmbVarType);
grpSetting.Controls.Add(cmbType);
grpSetting.Controls.Add(txtIP);
grpSetting.Controls.Add(txtPort);
grpSetting.Controls.Add(lblPort);
- grpSetting.Controls.Add(lbVarType);
grpSetting.Controls.Add(cmbIP);
grpSetting.Controls.Add(lblType);
grpSetting.Controls.Add(lblAddress);
grpSetting.Controls.Add(lblIP);
+ grpSetting.Controls.Add(cmbDataType);
+ grpSetting.Controls.Add(lblDataType);
grpSetting.Dock = DockStyle.Fill;
grpSetting.ForeColor = Color.CornflowerBlue;
grpSetting.Location = new Point(4, 4);
- grpSetting.Margin = new Padding(4);
+ grpSetting.Margin = new Padding(4, 4, 4, 4);
grpSetting.MinimumSize = new Size(326, 76);
grpSetting.Name = "grpSetting";
- grpSetting.Padding = new Padding(4);
+ grpSetting.Padding = new Padding(4, 4, 4, 4);
grpSetting.Size = new Size(819, 117);
grpSetting.TabIndex = 28;
grpSetting.TabStop = false;
@@ -159,29 +159,18 @@
// txtAddress
//
txtAddress.Location = new Point(314, 75);
- txtAddress.Margin = new Padding(4);
+ txtAddress.Margin = new Padding(4, 4, 4, 4);
txtAddress.Name = "txtAddress";
txtAddress.Size = new Size(124, 24);
txtAddress.TabIndex = 9;
txtAddress.TextChanged += txtAddress_TextChanged;
- //
- // cmbVarType
- //
- cmbVarType.DropDownStyle = ComboBoxStyle.DropDownList;
- cmbVarType.FormattingEnabled = true;
- cmbVarType.Location = new Point(533, 32);
- cmbVarType.Margin = new Padding(4);
- cmbVarType.Name = "cmbVarType";
- cmbVarType.Size = new Size(124, 26);
- cmbVarType.TabIndex = 8;
- cmbVarType.SelectedIndexChanged += cmbVarType_SelectedIndexChanged;
//
// cmbType
//
cmbType.DropDownStyle = ComboBoxStyle.DropDownList;
cmbType.FormattingEnabled = true;
cmbType.Location = new Point(314, 29);
- cmbType.Margin = new Padding(4);
+ cmbType.Margin = new Padding(4, 4, 4, 4);
cmbType.Name = "cmbType";
cmbType.Size = new Size(124, 26);
cmbType.TabIndex = 8;
@@ -189,7 +178,7 @@
// txtIP
//
txtIP.Location = new Point(99, 28);
- txtIP.Margin = new Padding(4);
+ txtIP.Margin = new Padding(4, 4, 4, 4);
txtIP.Name = "txtIP";
txtIP.Size = new Size(124, 24);
txtIP.TabIndex = 7;
@@ -197,7 +186,7 @@
// txtPort
//
txtPort.Location = new Point(99, 75);
- txtPort.Margin = new Padding(4);
+ txtPort.Margin = new Padding(4, 4, 4, 4);
txtPort.Name = "txtPort";
txtPort.Size = new Size(124, 24);
txtPort.TabIndex = 6;
@@ -212,21 +201,11 @@
lblPort.TabIndex = 4;
lblPort.Text = "绔彛";
//
- // lbVarType
- //
- lbVarType.AutoSize = true;
- lbVarType.Location = new Point(463, 35);
- lbVarType.Margin = new Padding(4, 0, 4, 0);
- lbVarType.Name = "lbVarType";
- lbVarType.Size = new Size(68, 18);
- lbVarType.TabIndex = 0;
- lbVarType.Text = "鍙橀噺绫诲瀷";
- //
// cmbIP
//
cmbIP.FormattingEnabled = true;
cmbIP.Location = new Point(99, 26);
- cmbIP.Margin = new Padding(4);
+ cmbIP.Margin = new Padding(4, 4, 4, 4);
cmbIP.Name = "cmbIP";
cmbIP.Size = new Size(124, 26);
cmbIP.TabIndex = 1;
@@ -234,7 +213,7 @@
// lblType
//
lblType.AutoSize = true;
- lblType.Location = new Point(246, 32);
+ lblType.Location = new Point(256, 32);
lblType.Margin = new Padding(4, 0, 4, 0);
lblType.Name = "lblType";
lblType.Size = new Size(38, 18);
@@ -244,10 +223,10 @@
// lblAddress
//
lblAddress.AutoSize = true;
- lblAddress.Location = new Point(242, 79);
+ lblAddress.Location = new Point(256, 79);
lblAddress.Margin = new Padding(4, 0, 4, 0);
lblAddress.Name = "lblAddress";
- lblAddress.Size = new Size(68, 18);
+ lblAddress.Size = new Size(38, 18);
lblAddress.TabIndex = 0;
lblAddress.Text = "鍙橀噺鍦板潃";
//
@@ -261,6 +240,27 @@
lblIP.TabIndex = 0;
lblIP.Text = "鍦板潃";
//
+ // cmbDataType
+ //
+ cmbDataType.DropDownStyle = ComboBoxStyle.DropDownList;
+ cmbDataType.FormattingEnabled = true;
+ cmbDataType.Location = new Point(525, 75);
+ cmbDataType.Margin = new Padding(4, 4, 4, 4);
+ cmbDataType.Name = "cmbDataType";
+ cmbDataType.Size = new Size(124, 26);
+ cmbDataType.TabIndex = 11;
+ cmbDataType.SelectedIndexChanged += cmbDataType_SelectedIndexChanged;
+ //
+ // lblDataType
+ //
+ lblDataType.AutoSize = true;
+ lblDataType.Location = new Point(462, 79);
+ lblDataType.Margin = new Padding(4, 0, 4, 0);
+ lblDataType.Name = "lblDataType";
+ lblDataType.Size = new Size(38, 18);
+ lblDataType.TabIndex = 10;
+ lblDataType.Text = "绫诲瀷";
+ //
// tableLayoutPanel2
//
tableLayoutPanel2.ColumnCount = 3;
@@ -271,7 +271,7 @@
tableLayoutPanel2.Controls.Add(btnSend, 0, 0);
tableLayoutPanel2.Dock = DockStyle.Fill;
tableLayoutPanel2.Location = new Point(4, 192);
- tableLayoutPanel2.Margin = new Padding(4);
+ tableLayoutPanel2.Margin = new Padding(4, 4, 4, 4);
tableLayoutPanel2.Name = "tableLayoutPanel2";
tableLayoutPanel2.RowCount = 1;
tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
@@ -283,7 +283,7 @@
btnRuleSend.Dock = DockStyle.Fill;
btnRuleSend.ForeColor = Color.CornflowerBlue;
btnRuleSend.Location = new Point(104, 4);
- btnRuleSend.Margin = new Padding(4);
+ btnRuleSend.Margin = new Padding(4, 4, 4, 4);
btnRuleSend.Name = "btnRuleSend";
btnRuleSend.Size = new Size(92, 34);
btnRuleSend.TabIndex = 14;
@@ -296,7 +296,7 @@
btnSend.Dock = DockStyle.Fill;
btnSend.ForeColor = Color.CornflowerBlue;
btnSend.Location = new Point(4, 4);
- btnSend.Margin = new Padding(4);
+ btnSend.Margin = new Padding(4, 4, 4, 4);
btnSend.Name = "btnSend";
btnSend.Size = new Size(92, 34);
btnSend.TabIndex = 12;
@@ -313,7 +313,7 @@
themeForm_Communicator.Font = new Font("Microsoft Sans Serif", 9F);
themeForm_Communicator.Image = (Image)resources.GetObject("themeForm_Communicator.Image");
themeForm_Communicator.Location = new Point(0, 0);
- themeForm_Communicator.Margin = new Padding(4);
+ themeForm_Communicator.Margin = new Padding(4, 4, 4, 4);
themeForm_Communicator.Name = "themeForm_Communicator";
themeForm_Communicator.Padding = new Padding(12, 88, 12, 11);
themeForm_Communicator.RoundCorners = true;
@@ -334,8 +334,8 @@
controlBox1.EnableMaximizeButton = true;
controlBox1.EnableMinimizeButton = true;
controlBox1.ForeColor = Color.FromArgb(155, 155, 155);
- controlBox1.Location = new Point(726, 18);
- controlBox1.Margin = new Padding(4);
+ controlBox1.Location = new Point(726, 22);
+ controlBox1.Margin = new Padding(4, 4, 4, 4);
controlBox1.MaximizeHoverColor = Color.FromArgb(74, 74, 74);
controlBox1.MinimizeHoverColor = Color.FromArgb(63, 63, 65);
controlBox1.Name = "controlBox1";
@@ -348,7 +348,7 @@
panel_CommunicatorForm.Controls.Add(tableLayoutPanel1);
panel_CommunicatorForm.Dock = DockStyle.Fill;
panel_CommunicatorForm.Location = new Point(12, 88);
- panel_CommunicatorForm.Margin = new Padding(4);
+ panel_CommunicatorForm.Margin = new Padding(4, 4, 4, 4);
panel_CommunicatorForm.Name = "panel_CommunicatorForm";
panel_CommunicatorForm.Size = new Size(827, 402);
panel_CommunicatorForm.TabIndex = 27;
@@ -360,7 +360,7 @@
ClientSize = new Size(851, 501);
Controls.Add(themeForm_Communicator);
FormBorderStyle = FormBorderStyle.None;
- Margin = new Padding(4);
+ Margin = new Padding(4, 4, 4, 4);
MinimumSize = new Size(326, 76);
Name = "CommunicatorForm";
Text = "閫氳璁剧疆";
@@ -400,7 +400,7 @@
private ComboBox cmbType;
private Label lblAddress;
private TextBox txtAddress;
- private ComboBox cmbVarType;
- private Label lbVarType;
+ private Label lblDataType;
+ private ComboBox cmbDataType;
}
}
\ No newline at end of file
--
Gitblit v1.9.3