Реорганизация
.NET Core Desktop / build (Debug) (push) Has been cancelled

This commit is contained in:
kislovdm
2026-04-27 00:15:02 +03:00
parent 2fb673661f
commit 8467399001
23 changed files with 77 additions and 88 deletions
+35
View File
@@ -0,0 +1,35 @@
using System;
using System.Windows.Forms;
using MonsterMonitor.UI;
namespace MonsterMonitor
{
internal static class Program
{
[STAThread]
private static void Main()
{
Application.ThreadException += (sender, args) =>
{
MessageBox.Show(
args.Exception.ToString(),
"Необработанное исключение UI-потока",
MessageBoxButtons.OK,
MessageBoxIcon.Error);
};
AppDomain.CurrentDomain.UnhandledException += (sender, args) =>
{
MessageBox.Show(
args.ExceptionObject.ToString(),
"Критическое исключение",
MessageBoxButtons.OK,
MessageBoxIcon.Error);
};
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
}
}