static void Main() { // Startup #if !DEBUG AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; #endif Properties.Resources.Culture = CultureInfo.CurrentCulture; InfoManager = new WzInformationManager(); SettingsManager = new WzSettingsManager(GetLocalSettingsPath(), typeof(UserSettings), typeof(ApplicationSettings), typeof(Microsoft.Xna.Framework.Color)); SettingsManager.Load(); MultiBoard.RecalculateSettings(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException); // Program run here GUI.Initialization initForm = new GUI.Initialization(); Application.Run(initForm); // Shutdown if (initForm.editor != null) { initForm.editor.hcsm.backupMan.ClearBackups(); } SettingsManager.Save(); if (Restarting) { Application.Restart(); } }
static void Main() { // Startup #if !DEBUG AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; #endif Properties.Resources.Culture = CultureInfo.CurrentCulture; InfoManager = new WzInformationManager(); SettingsManager = new WzSettingsManager(GetLocalSettingsPath(), typeof(UserSettings), typeof(ApplicationSettings), typeof(Microsoft.Xna.Framework.Color)); SettingsManager.Load(); MultiBoard.RecalculateSettings(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException); // Program run here GUI.Initialization initForm = new GUI.Initialization(); Application.Run(initForm); // Shutdown if (initForm.editor != null) initForm.editor.hcsm.backupMan.ClearBackups(); SettingsManager.Save(); if (Restarting) { Application.Restart(); } }