forked from sergiisyrovatchenko/SQLIndexManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
37 lines (30 loc) · 1.13 KB
/
Copy pathProgram.cs
File metadata and controls
37 lines (30 loc) · 1.13 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
35
36
37
using DevExpress.LookAndFeel;
using DevExpress.Skins;
using System;
using System.Globalization;
using System.Threading;
using System.Windows.Forms;
namespace SQLIndexManager {
static class Program {
[STAThread]
static void Main() {
CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");
Thread.CurrentThread.CurrentCulture = culture;
Thread.CurrentThread.CurrentUICulture = culture;
CultureInfo.DefaultThreadCurrentCulture = culture;
CultureInfo.DefaultThreadCurrentUICulture = culture;
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.ThreadException += Application_ThreadException;
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
SkinManager.EnableFormSkins();
UserLookAndFeel.Default.SetSkinStyle("Office 2016 Dark");
Application.Run(new MainBox());
}
private static void Application_ThreadException(object sender, ThreadExceptionEventArgs e) {
using (ErrorBox errorBox = new ErrorBox(e.Exception)) {
errorBox.ShowDialog();
}
}
}
}