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] 注册表方式启动
---
.vs/DataCapture_MA/v17/.suo | 0
DataCapture_MA/DataCapture_MA.csproj | 2 +-
DataCapture_MA/Form1.cs | 4 ++--
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.vs/DataCapture_MA/v17/.suo b/.vs/DataCapture_MA/v17/.suo
index 9b2cb60..e79f50c 100644
--- a/.vs/DataCapture_MA/v17/.suo
+++ b/.vs/DataCapture_MA/v17/.suo
Binary files differ
diff --git a/DataCapture_MA/DataCapture_MA.csproj b/DataCapture_MA/DataCapture_MA.csproj
index 0f36043..ed74b5d 100644
--- a/DataCapture_MA/DataCapture_MA.csproj
+++ b/DataCapture_MA/DataCapture_MA.csproj
@@ -17,7 +17,7 @@
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<IsWebBootstrapper>false</IsWebBootstrapper>
- <PublishUrl>C:\Users\13650\Desktop\MA_Capture\</PublishUrl>
+ <PublishUrl>C:\Users\13650\Desktop\鏂板缓鏂囦欢澶筡</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
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