feat: 更新

This commit is contained in:
GukSang.Jin
2026-02-27 16:56:18 +08:00
parent c7d107c2f1
commit fe0aee16ad
5 changed files with 237 additions and 15 deletions

View File

@@ -9,6 +9,17 @@ namespace PetWashControl
/// </summary>
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
// 全局异常处理
this.DispatcherUnhandledException += (s, args) =>
{
MessageBox.Show($"应用程序错误:\n{args.Exception.Message}\n\n{args.Exception.StackTrace}",
"错误", MessageBoxButton.OK, MessageBoxImage.Error);
args.Handled = true;
};
}
}
}