From f317709fbc7de95fa2e1b7f41d01c85a7fec8238 Mon Sep 17 00:00:00 2001
From: zs <zhousong@weben-smart.com>
Date: 周四, 21 11月 2024 10:50:06 +0800
Subject: [PATCH] 注册表方式启动

---
 DataCapture_MA/Form1.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/DataCapture_MA/Form1.cs b/DataCapture_MA/Form1.cs
index 8472e21..f6a8d4a 100644
--- a/DataCapture_MA/Form1.cs
+++ b/DataCapture_MA/Form1.cs
@@ -71,7 +71,7 @@
             //string startupPath = Environment.GetFolderPath(Environment.SpecialFolder.Startup); // 鍚姩鏂囦欢澶硅矾寰�
             //CreateShortcut(shortcutName, targetPath, startupPath); // 鍒涘缓蹇嵎鏂瑰紡
 
-            SetRegistryAutoStart("MaDataCapture", Application.ExecutablePath);
+            SetRegistryAutoStart("MaDataCapture", Application.ExecutablePath); // 娉ㄥ唽琛ㄦ柟寮忓疄鐜拌嚜鍚姩
 
             StartReceive(); // 鍚姩绋嬪簭
             CreateDatabase();  // 鍒濆鍖栨暟鎹簱
@@ -108,7 +108,7 @@
             }
             catch (Exception ex)
             {
-                MessageBox.Show($"璁剧疆寮�鏈鸿嚜鍚姩澶辫触锛歿ex.Message}", "閿欒", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                MessageBox.Show($"璁剧疆寮�鏈鸿嚜鍚姩澶辫触锛歿ex.Message}锛岃杩涜鎵嬪姩鍚姩", "閿欒", MessageBoxButtons.OK, MessageBoxIcon.Error);
             }
         }
         private void CaptrueForm_FormClosing(object sender, FormClosingEventArgs e)

--
Gitblit v1.9.3