lixiaojun
2025-01-21 13e336388e5978749e88be829d1465a2350c5645
Desktop/HStation.Desktop.Xhs.Core/Program.cs
@@ -97,11 +97,12 @@
        private static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
        {
            var ex = e.Exception;
            if (ex is Yw.Dto.InternalException internalEx)
            if (ex is Yw.Vmo.VException internalEx)
            {
                Yw.LogHelper.Error("系统出现内部异常,ERROR:249", internalEx);
                MessageBoxHelper.ShowError(internalEx.ErrorMsg);
                var dlg = new Yw.WinFrmUI.VmoExceptionInfoDlg();
                dlg.SetBindingData(internalEx);
                dlg.ShowDialog();
            }
            else
            {
@@ -113,10 +114,12 @@
        private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            var ex = e.ExceptionObject as Exception;
            if (ex is Yw.Dto.InternalException internalEx)
            if (ex is Yw.Vmo.VException internalEx)
            {
                Yw.LogHelper.Error("系统出现内部异常,ERROR:249", internalEx);
                MessageBoxHelper.ShowError(internalEx.ErrorMsg);
                var dlg = new Yw.WinFrmUI.VmoExceptionInfoDlg();
                dlg.SetBindingData(internalEx);
                dlg.ShowDialog();
            }
            else
            {