-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
34 lines (29 loc) · 1.04 KB
/
Copy pathProgram.cs
File metadata and controls
34 lines (29 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// EVE IntelPulse
// Copyright (c) 2026 Arnold Olympus
// Licensed under GPL v3. See LICENSE file in the repository.
using System;
using System.Windows.Forms;
namespace EVEIntelPulse
{
internal static class Program
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.ThreadException += (_, e) =>
MessageBox.Show(e.Exception.ToString(), @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
AppDomain.CurrentDomain.UnhandledException += (_, e) =>
MessageBox.Show(e.ExceptionObject.ToString(), @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
try
{
Application.Run(new MainForm());
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString(), @"Critical Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
}