Ejemplo n.º 1
0
        static void Main(string[] parameters)
        {
            try
            {
                Settings forceLoad = Universe.Instance.Settings;
                Logger.Init();

                Startup.parameters = parameters;

                MainForm form = new MainForm();

                if (!Universe.emergencyExit)
                    Application.Run(form);
                // Logger will be shut down in the exit events
            }
            catch (Exception ex)
            {
                MainForm.ShowError(new FatalErrorException("Error on startup.", ex));
            }
        }
Ejemplo n.º 2
0
        static void Main(string[] parameters)
        {
            try
            {
                Settings forceLoad = Universe.Instance.Settings; // force load of settings
                Logger.Init();

                Startup.parameters = parameters;

                MainForm form = new MainForm();

                if (!Universe.emergencyExit)
                {
                    Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
                    Logger.Log("Starting v. 0.0.1b");
                    Application.Run(form);
                }
                // Logger will be shut down in the exit events
            }
            catch (Exception ex)
            {
                MainForm.ShowError(new FatalErrorException("Error on startup.", ex));
            }
        }