From 038587a4ff652278fe22c2d03c1ebb602b95c5f0 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期二, 22 七月 2025 12:54:49 +0800
Subject: [PATCH] 增强数据库功能和用户界面

---
 Form1.Designer.cs |   48 +++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 43 insertions(+), 5 deletions(-)

diff --git a/Form1.Designer.cs b/Form1.Designer.cs
index 8b3dc20..5b764f8 100644
--- a/Form1.Designer.cs
+++ b/Form1.Designer.cs
@@ -36,6 +36,9 @@
             this.btnDisconnect = new System.Windows.Forms.Button();
             this.btnConnect = new System.Windows.Forms.Button();
             this.label1 = new System.Windows.Forms.Label();
+            this.btnTestDatabase = new System.Windows.Forms.Button();
+            this.lblDatabaseStatus = new System.Windows.Forms.Label();
+            this.label3 = new System.Windows.Forms.Label();
             this.groupBoxStats = new System.Windows.Forms.GroupBox();
             this.lblStats = new System.Windows.Forms.Label();
             this.groupBoxLog = new System.Windows.Forms.GroupBox();
@@ -56,9 +59,12 @@
             this.groupBoxConnection.Controls.Add(this.btnDisconnect);
             this.groupBoxConnection.Controls.Add(this.btnConnect);
             this.groupBoxConnection.Controls.Add(this.label1);
+            this.groupBoxConnection.Controls.Add(this.btnTestDatabase);
+            this.groupBoxConnection.Controls.Add(this.lblDatabaseStatus);
+            this.groupBoxConnection.Controls.Add(this.label3);
             this.groupBoxConnection.Location = new System.Drawing.Point(12, 12);
             this.groupBoxConnection.Name = "groupBoxConnection";
-            this.groupBoxConnection.Size = new System.Drawing.Size(776, 90);
+            this.groupBoxConnection.Size = new System.Drawing.Size(776, 120);
             this.groupBoxConnection.TabIndex = 0;
             this.groupBoxConnection.TabStop = false;
             this.groupBoxConnection.Text = "杩炴帴鎺у埗鍜岄厤缃�";
@@ -129,10 +135,39 @@
             this.label1.TabIndex = 0;
             this.label1.Text = "PLC杩炴帴鐘舵��:";
             // 
+            // btnTestDatabase
+            // 
+            this.btnTestDatabase.Location = new System.Drawing.Point(405, 24);
+            this.btnTestDatabase.Name = "btnTestDatabase";
+            this.btnTestDatabase.Size = new System.Drawing.Size(80, 25);
+            this.btnTestDatabase.TabIndex = 7;
+            this.btnTestDatabase.Text = "娴嬭瘯鏁版嵁搴�";
+            this.btnTestDatabase.UseVisualStyleBackColor = true;
+            // 
+            // lblDatabaseStatus
+            // 
+            this.lblDatabaseStatus.AutoSize = true;
+            this.lblDatabaseStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
+            this.lblDatabaseStatus.ForeColor = System.Drawing.Color.Gray;
+            this.lblDatabaseStatus.Location = new System.Drawing.Point(556, 28);
+            this.lblDatabaseStatus.Name = "lblDatabaseStatus";
+            this.lblDatabaseStatus.Size = new System.Drawing.Size(56, 17);
+            this.lblDatabaseStatus.TabIndex = 9;
+            this.lblDatabaseStatus.Text = "鏈娴�";
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Location = new System.Drawing.Point(491, 28);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(59, 17);
+            this.label3.TabIndex = 8;
+            this.label3.Text = "鏁版嵁搴�:";
+            // 
             // groupBoxStats
             // 
             this.groupBoxStats.Controls.Add(this.lblStats);
-            this.groupBoxStats.Location = new System.Drawing.Point(12, 108);
+            this.groupBoxStats.Location = new System.Drawing.Point(12, 138);
             this.groupBoxStats.Name = "groupBoxStats";
             this.groupBoxStats.Size = new System.Drawing.Size(776, 80);
             this.groupBoxStats.TabIndex = 1;
@@ -152,9 +187,9 @@
             // 
             this.groupBoxLog.Controls.Add(this.btnClearLog);
             this.groupBoxLog.Controls.Add(this.txtLog);
-            this.groupBoxLog.Location = new System.Drawing.Point(12, 224);
+            this.groupBoxLog.Location = new System.Drawing.Point(12, 254);
             this.groupBoxLog.Name = "groupBoxLog";
-            this.groupBoxLog.Size = new System.Drawing.Size(776, 340);
+            this.groupBoxLog.Size = new System.Drawing.Size(776, 310);
             this.groupBoxLog.TabIndex = 3;
             this.groupBoxLog.TabStop = false;
             this.groupBoxLog.Text = "杩愯鏃ュ織鍜屾暟鎹�";
@@ -182,7 +217,7 @@
             // lblDataCount
             // 
             this.lblDataCount.AutoSize = true;
-            this.lblDataCount.Location = new System.Drawing.Point(12, 194);
+            this.lblDataCount.Location = new System.Drawing.Point(12, 224);
             this.lblDataCount.Name = "lblDataCount";
             this.lblDataCount.Size = new System.Drawing.Size(80, 17);
             this.lblDataCount.TabIndex = 4;
@@ -228,5 +263,8 @@
         private System.Windows.Forms.Button btnClearLog;
         private System.Windows.Forms.TextBox txtLog;
         private System.Windows.Forms.Label lblDataCount;
+        private System.Windows.Forms.Button btnTestDatabase;
+        private System.Windows.Forms.Label lblDatabaseStatus;
+        private System.Windows.Forms.Label label3;
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3