-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProgram.cs
More file actions
20 lines (19 loc) · 781 Bytes
/
Program.cs
File metadata and controls
20 lines (19 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace FindInFiles {
internal static class Program {
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args) {
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
Application.Run(new FindInFilesForm(args));
}
private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) {
var exc = e.ExceptionObject as Exception;
MessageBox.Show(exc?.StackTrace, exc?.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}