From c154cfddec4c770e58c23c28bdafa7a5c7b5a389 Mon Sep 17 00:00:00 2001
From: C3204 <zhengyabo@lanpucloud.cn>
Date: 星期三, 07 一月 2026 15:07:33 +0800
Subject: [PATCH] 增加MySQL数据库产品信息的增删改查。

---
 LB_VisionProcesses/Cameras/2DCameraForm.Designer.cs |   67 +++++++++++++++++----------------
 1 files changed, 34 insertions(+), 33 deletions(-)

diff --git a/LB_VisionProcesses/Cameras/2DCameraForm.Designer.cs b/LB_VisionProcesses/Cameras/2DCameraForm.Designer.cs
index 90ab464..894b11f 100644
--- a/LB_VisionProcesses/Cameras/2DCameraForm.Designer.cs
+++ b/LB_VisionProcesses/Cameras/2DCameraForm.Designer.cs
@@ -106,7 +106,7 @@
             cmbBrand.FormattingEnabled = true;
             cmbBrand.Location = new Point(53, 3);
             cmbBrand.Name = "cmbBrand";
-            cmbBrand.Size = new Size(297, 25);
+            cmbBrand.Size = new Size(296, 25);
             cmbBrand.TabIndex = 0;
             // 
             // cmbSN
@@ -115,7 +115,7 @@
             cmbSN.FormattingEnabled = true;
             cmbSN.Location = new Point(53, 3);
             cmbSN.Name = "cmbSN";
-            cmbSN.Size = new Size(297, 25);
+            cmbSN.Size = new Size(296, 25);
             cmbSN.TabIndex = 1;
             cmbSN.SelectedIndexChanged += cmbSN_SelectedIndexChanged;
             cmbSN.MouseDown += cmbSN_MouseDown;
@@ -219,7 +219,7 @@
             lblPicCount.Dock = DockStyle.Fill;
             lblPicCount.Location = new Point(123, 0);
             lblPicCount.Name = "lblPicCount";
-            lblPicCount.Size = new Size(227, 34);
+            lblPicCount.Size = new Size(226, 34);
             lblPicCount.TabIndex = 16;
             lblPicCount.Text = "0";
             lblPicCount.TextAlign = ContentAlignment.MiddleLeft;
@@ -229,7 +229,7 @@
             txtGain.Dock = DockStyle.Fill;
             txtGain.Location = new Point(53, 3);
             txtGain.Name = "txtGain";
-            txtGain.Size = new Size(297, 23);
+            txtGain.Size = new Size(296, 23);
             txtGain.TabIndex = 21;
             txtGain.TextChanged += txtGain_TextChanged;
             // 
@@ -238,7 +238,7 @@
             txtExp.Dock = DockStyle.Fill;
             txtExp.Location = new Point(53, 3);
             txtExp.Name = "txtExp";
-            txtExp.Size = new Size(297, 23);
+            txtExp.Size = new Size(296, 23);
             txtExp.TabIndex = 20;
             txtExp.TextChanged += txtExp_TextChanged;
             // 
@@ -272,7 +272,7 @@
             groupBox1.ForeColor = SystemColors.Control;
             groupBox1.Location = new Point(0, 0);
             groupBox1.Name = "groupBox1";
-            groupBox1.Size = new Size(486, 591);
+            groupBox1.Size = new Size(487, 591);
             groupBox1.TabIndex = 17;
             groupBox1.TabStop = false;
             groupBox1.Text = "瀹炴椂閲囬泦";
@@ -282,7 +282,7 @@
             panel_Picture.Dock = DockStyle.Fill;
             panel_Picture.Location = new Point(3, 19);
             panel_Picture.Name = "panel_Picture";
-            panel_Picture.Size = new Size(480, 569);
+            panel_Picture.Size = new Size(481, 569);
             panel_Picture.TabIndex = 0;
             // 
             // radioButtonSoft
@@ -291,7 +291,7 @@
             radioButtonSoft.Dock = DockStyle.Fill;
             radioButtonSoft.Location = new Point(3, 123);
             radioButtonSoft.Name = "radioButtonSoft";
-            radioButtonSoft.Size = new Size(353, 34);
+            radioButtonSoft.Size = new Size(352, 34);
             radioButtonSoft.TabIndex = 23;
             radioButtonSoft.TabStop = true;
             radioButtonSoft.Text = "杞Е鍙�";
@@ -304,7 +304,7 @@
             radioButtonHard.Dock = DockStyle.Fill;
             radioButtonHard.Location = new Point(3, 203);
             radioButtonHard.Name = "radioButtonHard";
-            radioButtonHard.Size = new Size(353, 34);
+            radioButtonHard.Size = new Size(352, 34);
             radioButtonHard.TabIndex = 24;
             radioButtonHard.TabStop = true;
             radioButtonHard.Text = "纭Е鍙�";
@@ -324,7 +324,7 @@
             // 
             splitContainer1.Panel2.Controls.Add(groupBox1);
             splitContainer1.Size = new Size(855, 591);
-            splitContainer1.SplitterDistance = 365;
+            splitContainer1.SplitterDistance = 364;
             splitContainer1.TabIndex = 19;
             // 
             // groupBox2
@@ -336,7 +336,7 @@
             groupBox2.Location = new Point(0, 0);
             groupBox2.MinimumSize = new Size(261, 61);
             groupBox2.Name = "groupBox2";
-            groupBox2.Size = new Size(365, 591);
+            groupBox2.Size = new Size(364, 591);
             groupBox2.TabIndex = 0;
             groupBox2.TabStop = false;
             groupBox2.Text = "鐩告満鍙傛暟";
@@ -378,7 +378,7 @@
             tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 7.143011F));
             tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 7.14086771F));
             tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
-            tableLayoutPanel2.Size = new Size(359, 569);
+            tableLayoutPanel2.Size = new Size(358, 569);
             tableLayoutPanel2.TabIndex = 25;
             // 
             // tableLayoutPanel3
@@ -393,7 +393,7 @@
             tableLayoutPanel3.Name = "tableLayoutPanel3";
             tableLayoutPanel3.RowCount = 1;
             tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
-            tableLayoutPanel3.Size = new Size(353, 34);
+            tableLayoutPanel3.Size = new Size(352, 34);
             tableLayoutPanel3.TabIndex = 0;
             // 
             // tableLayoutPanel4
@@ -408,7 +408,7 @@
             tableLayoutPanel4.Name = "tableLayoutPanel4";
             tableLayoutPanel4.RowCount = 1;
             tableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
-            tableLayoutPanel4.Size = new Size(353, 34);
+            tableLayoutPanel4.Size = new Size(352, 34);
             tableLayoutPanel4.TabIndex = 1;
             // 
             // tableLayoutPanel5
@@ -426,7 +426,7 @@
             tableLayoutPanel5.Name = "tableLayoutPanel5";
             tableLayoutPanel5.RowCount = 1;
             tableLayoutPanel5.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
-            tableLayoutPanel5.Size = new Size(353, 34);
+            tableLayoutPanel5.Size = new Size(352, 34);
             tableLayoutPanel5.TabIndex = 2;
             // 
             // btnEdit
@@ -436,7 +436,7 @@
             btnEdit.ForeColor = SystemColors.ControlText;
             btnEdit.Location = new Point(267, 3);
             btnEdit.Name = "btnEdit";
-            btnEdit.Size = new Size(83, 28);
+            btnEdit.Size = new Size(82, 28);
             btnEdit.TabIndex = 10;
             btnEdit.Text = "缂栬緫";
             btnEdit.UseVisualStyleBackColor = true;
@@ -458,7 +458,7 @@
             tableLayoutPanel6.Name = "tableLayoutPanel6";
             tableLayoutPanel6.RowCount = 1;
             tableLayoutPanel6.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
-            tableLayoutPanel6.Size = new Size(353, 34);
+            tableLayoutPanel6.Size = new Size(352, 34);
             tableLayoutPanel6.TabIndex = 24;
             // 
             // btnSaveImage
@@ -468,7 +468,7 @@
             btnSaveImage.Location = new Point(266, 2);
             btnSaveImage.Margin = new Padding(2);
             btnSaveImage.Name = "btnSaveImage";
-            btnSaveImage.Size = new Size(85, 30);
+            btnSaveImage.Size = new Size(84, 30);
             btnSaveImage.TabIndex = 8;
             btnSaveImage.Text = "淇濆瓨鍥剧墖";
             btnSaveImage.UseVisualStyleBackColor = true;
@@ -486,7 +486,7 @@
             tableLayoutPanel7.Name = "tableLayoutPanel7";
             tableLayoutPanel7.RowCount = 1;
             tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
-            tableLayoutPanel7.Size = new Size(353, 34);
+            tableLayoutPanel7.Size = new Size(352, 34);
             tableLayoutPanel7.TabIndex = 25;
             // 
             // tableLayoutPanel8
@@ -501,7 +501,7 @@
             tableLayoutPanel8.Name = "tableLayoutPanel8";
             tableLayoutPanel8.RowCount = 1;
             tableLayoutPanel8.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
-            tableLayoutPanel8.Size = new Size(353, 34);
+            tableLayoutPanel8.Size = new Size(352, 34);
             tableLayoutPanel8.TabIndex = 26;
             // 
             // tableLayoutPanel1
@@ -518,7 +518,7 @@
             tableLayoutPanel1.Name = "tableLayoutPanel1";
             tableLayoutPanel1.RowCount = 1;
             tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
-            tableLayoutPanel1.Size = new Size(353, 34);
+            tableLayoutPanel1.Size = new Size(352, 34);
             tableLayoutPanel1.TabIndex = 29;
             // 
             // btnStartHard
@@ -538,7 +538,7 @@
             ckbUpParams.Dock = DockStyle.Fill;
             ckbUpParams.Location = new Point(73, 3);
             ckbUpParams.Name = "ckbUpParams";
-            ckbUpParams.Size = new Size(135, 28);
+            ckbUpParams.Size = new Size(134, 28);
             ckbUpParams.TabIndex = 23;
             ckbUpParams.Text = "鏄惁姣忔鍐欏叆鍙傛暟";
             ckbUpParams.UseVisualStyleBackColor = true;
@@ -547,7 +547,7 @@
             // 
             ckbRegrab.AutoSize = true;
             ckbRegrab.Dock = DockStyle.Fill;
-            ckbRegrab.Location = new Point(214, 3);
+            ckbRegrab.Location = new Point(213, 3);
             ckbRegrab.Name = "ckbRegrab";
             ckbRegrab.Size = new Size(136, 28);
             ckbRegrab.TabIndex = 24;
@@ -566,7 +566,7 @@
             tableLayoutPanel12.Name = "tableLayoutPanel12";
             tableLayoutPanel12.RowCount = 1;
             tableLayoutPanel12.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
-            tableLayoutPanel12.Size = new Size(353, 43);
+            tableLayoutPanel12.Size = new Size(352, 43);
             tableLayoutPanel12.TabIndex = 31;
             // 
             // lblCapTime
@@ -575,7 +575,7 @@
             lblCapTime.Dock = DockStyle.Fill;
             lblCapTime.Location = new Point(123, 0);
             lblCapTime.Name = "lblCapTime";
-            lblCapTime.Size = new Size(227, 43);
+            lblCapTime.Size = new Size(226, 43);
             lblCapTime.TabIndex = 16;
             lblCapTime.Text = "0ms";
             lblCapTime.TextAlign = ContentAlignment.MiddleLeft;
@@ -603,7 +603,7 @@
             tableLayoutPanel11.Name = "tableLayoutPanel11";
             tableLayoutPanel11.RowCount = 1;
             tableLayoutPanel11.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
-            tableLayoutPanel11.Size = new Size(353, 34);
+            tableLayoutPanel11.Size = new Size(352, 34);
             tableLayoutPanel11.TabIndex = 30;
             // 
             // cmbImagesPath
@@ -614,7 +614,7 @@
             cmbImagesPath.FormattingEnabled = true;
             cmbImagesPath.Location = new Point(3, 443);
             cmbImagesPath.Name = "cmbImagesPath";
-            cmbImagesPath.Size = new Size(353, 25);
+            cmbImagesPath.Size = new Size(352, 25);
             cmbImagesPath.TabIndex = 0;
             cmbImagesPath.SelectedIndexChanged += cmbImagesPath_SelectedIndexChanged;
             cmbImagesPath.MouseHover += cmbImagesPath_MouseHover;
@@ -633,7 +633,7 @@
             tableLayoutPanel9.Name = "tableLayoutPanel9";
             tableLayoutPanel9.RowCount = 1;
             tableLayoutPanel9.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
-            tableLayoutPanel9.Size = new Size(353, 34);
+            tableLayoutPanel9.Size = new Size(352, 34);
             tableLayoutPanel9.TabIndex = 27;
             // 
             // ckbLocalTest
@@ -665,7 +665,7 @@
             btnLocalGrab.ForeColor = SystemColors.Desktop;
             btnLocalGrab.Location = new Point(237, 3);
             btnLocalGrab.Name = "btnLocalGrab";
-            btnLocalGrab.Size = new Size(113, 28);
+            btnLocalGrab.Size = new Size(112, 28);
             btnLocalGrab.TabIndex = 2;
             btnLocalGrab.Text = "鏈湴鍙栧浘";
             btnLocalGrab.UseVisualStyleBackColor = true;
@@ -683,7 +683,7 @@
             tableLayoutPanel10.Name = "tableLayoutPanel10";
             tableLayoutPanel10.RowCount = 1;
             tableLayoutPanel10.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
-            tableLayoutPanel10.Size = new Size(353, 34);
+            tableLayoutPanel10.Size = new Size(352, 34);
             tableLayoutPanel10.TabIndex = 32;
             // 
             // label6
@@ -702,7 +702,7 @@
             txtTimeout.Dock = DockStyle.Fill;
             txtTimeout.Location = new Point(53, 3);
             txtTimeout.Name = "txtTimeout";
-            txtTimeout.Size = new Size(297, 23);
+            txtTimeout.Size = new Size(296, 23);
             txtTimeout.TabIndex = 1;
             // 
             // theme_2DCameraForm
@@ -724,6 +724,7 @@
             theme_2DCameraForm.StartPosition = FormStartPosition.WindowsDefaultLocation;
             theme_2DCameraForm.TabIndex = 20;
             theme_2DCameraForm.Text = "2D鐩告満璁剧疆鐣岄潰";
+            theme_2DCameraForm.Click += theme_2DCameraForm_Click;
             // 
             // controlBox1
             // 
@@ -759,8 +760,8 @@
             // 
             // CameraForm
             // 
-            AutoScaleDimensions = new SizeF(7F, 17F);
-            AutoScaleMode = AutoScaleMode.Font;
+            AutoScaleDimensions = new SizeF(96F, 96F);
+            AutoScaleMode = AutoScaleMode.Dpi;
             ClientSize = new Size(885, 680);
             Controls.Add(theme_2DCameraForm);
             FormBorderStyle = FormBorderStyle.None;

--
Gitblit v1.9.3