-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
25 lines (23 loc) · 822 Bytes
/
Copy pathProgram.cs
File metadata and controls
25 lines (23 loc) · 822 Bytes
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
// NotiWhacker application entry point and global exception boundary.
using System;
using System.Windows.Forms;
namespace NotiWhacker
{
internal static class Program
{
[STAThread]
private static int Main(string[] args)
{
if (args.Length > 0 && string.Equals(args[0], "--self-test", StringComparison.OrdinalIgnoreCase))
{
return SelfTestRunner.Run();
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.ThreadException += (sender, eventArgs) =>
MessageBox.Show(eventArgs.Exception.Message, "NotiWhacker", MessageBoxButtons.OK, MessageBoxIcon.Error);
Application.Run(new MainForm());
return 0;
}
}
}