基线:全量源码首提(D1 版本控制落地,含第一轮优化 B1-B4/A1/A4/缩放修复)

This commit is contained in:
dqb-dev
2026-10-01 22:15:22 +08:00
commit 1e65792b09
499 changed files with 204579 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
using System;
using System.Windows.Forms;
namespace yjktool
{
static class Program
{
[STAThread]
static void Main()
{
// 全局异常兜底:任何未捕获异常弹窗而不是闪退
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
Application.ThreadException += (s, e) => 弹(e.Exception);
AppDomain.CurrentDomain.UnhandledException += (s, e) => 弹(e.ExceptionObject as Exception);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
private static void 弹(Exception ex)
{
try
{
MessageBox.Show("程序异常(可继续):\n\n" + (ex == null ? "?" : ex.ToString()),
"元件库数据工具", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
catch { }
}
}
}