From d0c990eaf6cfdbf77c1f4f8db272f4964ec43310 Mon Sep 17 00:00:00 2001
From: C3204 <zhengyabo@lanpucloud.cn>
Date: 星期四, 15 一月 2026 15:58:15 +0800
Subject: [PATCH] 优化西门子S7通讯:支持多数据类型、UI布局调整及配置持久化修复   详细说明:    1. 通讯核心 (SiemensLBS7)        * 多类型支持:完善 SendMessage 和 ReceiveMsg,支持 Bool, Byte, Int, DInt, Real, Double, Word, DWord, String的读写。        * Bool 解析优化:增强布尔值解析逻辑,支持字符串 "1"/"0" 及 "True"/"False"(不区分大小写)。        * 错误反馈:捕获数据转换异常(如格式错误),将具体错误信息写入 Msg 属性,便于 UI 展示。

---
 LB_SmartVision/Forms/Pages/MotionControlPage/MotionControlEditPage.Designer.cs |   35 +++++++++++++++++------------------
 1 files changed, 17 insertions(+), 18 deletions(-)

diff --git a/LB_SmartVision/Forms/Pages/MotionControlPage/MotionControlEditPage.Designer.cs b/LB_SmartVision/Forms/Pages/MotionControlPage/MotionControlEditPage.Designer.cs
index 5abb7ca..477b065 100644
--- a/LB_SmartVision/Forms/Pages/MotionControlPage/MotionControlEditPage.Designer.cs
+++ b/LB_SmartVision/Forms/Pages/MotionControlPage/MotionControlEditPage.Designer.cs
@@ -33,7 +33,7 @@
         {
             uiButton1 = new HopeButton();
             uiButton2 = new LostButton();
-            uiFlowLayoutPanel1 = new FlowLayoutPanel();
+            uiMCLayoutPanel1 = new FlowLayoutPanel();
             tableLayoutPanel1 = new TableLayoutPanel();
             tableLayoutPanel2 = new TableLayoutPanel();
             tableLayoutPanel1.SuspendLayout();
@@ -61,6 +61,7 @@
             uiButton1.Text = "澧炲姞";
             uiButton1.TextColor = Color.White;
             uiButton1.WarningColor = Color.FromArgb(230, 162, 60);
+            uiButton1.Click += uiButton1_Click;
             // 
             // uiButton2
             // 
@@ -78,27 +79,27 @@
             uiButton2.TabIndex = 12;
             uiButton2.Text = "娓呴櫎";
             // 
-            // uiFlowLayoutPanel1
+            // uiMCLayoutPanel1
             // 
-            uiFlowLayoutPanel1.BackColor = Color.FromArgb(32, 41, 50);
-            uiFlowLayoutPanel1.Dock = DockStyle.Fill;
-            uiFlowLayoutPanel1.Font = new Font("瀹嬩綋", 12F);
-            uiFlowLayoutPanel1.ForeColor = SystemColors.Control;
-            uiFlowLayoutPanel1.Location = new Point(4, 5);
-            uiFlowLayoutPanel1.Margin = new Padding(4, 5, 4, 5);
-            uiFlowLayoutPanel1.MinimumSize = new Size(1, 1);
-            uiFlowLayoutPanel1.Name = "uiFlowLayoutPanel1";
-            uiFlowLayoutPanel1.Padding = new Padding(2);
-            uiFlowLayoutPanel1.Size = new Size(599, 293);
-            uiFlowLayoutPanel1.TabIndex = 10;
-            uiFlowLayoutPanel1.Text = "`";
+            uiMCLayoutPanel1.BackColor = Color.FromArgb(32, 41, 50);
+            uiMCLayoutPanel1.Dock = DockStyle.Fill;
+            uiMCLayoutPanel1.Font = new Font("瀹嬩綋", 12F);
+            uiMCLayoutPanel1.ForeColor = SystemColors.Control;
+            uiMCLayoutPanel1.Location = new Point(4, 5);
+            uiMCLayoutPanel1.Margin = new Padding(4, 5, 4, 5);
+            uiMCLayoutPanel1.MinimumSize = new Size(1, 1);
+            uiMCLayoutPanel1.Name = "uiMCLayoutPanel1";
+            uiMCLayoutPanel1.Padding = new Padding(2);
+            uiMCLayoutPanel1.Size = new Size(599, 293);
+            uiMCLayoutPanel1.TabIndex = 10;
+            uiMCLayoutPanel1.Text = "`";
             // 
             // tableLayoutPanel1
             // 
             tableLayoutPanel1.ColumnCount = 1;
             tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
             tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 20F));
-            tableLayoutPanel1.Controls.Add(uiFlowLayoutPanel1, 0, 0);
+            tableLayoutPanel1.Controls.Add(uiMCLayoutPanel1, 0, 0);
             tableLayoutPanel1.Controls.Add(tableLayoutPanel2, 0, 1);
             tableLayoutPanel1.Dock = DockStyle.Fill;
             tableLayoutPanel1.Location = new Point(0, 0);
@@ -130,8 +131,6 @@
             // 
             // MotionControlEditPage
             // 
-            AutoScaleDimensions = new SizeF(96F, 96F);
-            AutoScaleMode = AutoScaleMode.Dpi;
             BackColor = Color.FromArgb(32, 41, 50);
             Controls.Add(tableLayoutPanel1);
             ForeColor = SystemColors.Control;
@@ -147,7 +146,7 @@
 
         private ReaLTaiizor.Controls.HopeButton uiButton1;
         private ReaLTaiizor.Controls.LostButton uiButton2;
-        private FlowLayoutPanel uiFlowLayoutPanel1;
+        private FlowLayoutPanel uiMCLayoutPanel1;
         private TableLayoutPanel tableLayoutPanel1;
         private TableLayoutPanel tableLayoutPanel2;
     }

--
Gitblit v1.9.3