Ejemplo n.º 1
0
        private static void RunInDebugMode()
        {
            Application.ThreadException += Application_ThreadException;
            AppDomain.CurrentDomain.UnhandledException += AppDomainUnhandledException;

            var context = CustomApplicationContext.Create(new SplashForm());

            Application.Run(context);
        }
Ejemplo n.º 2
0
        private static void RunInReleaseMode()
        {
            Application.ThreadException += Application_ThreadException;
            AppDomain.CurrentDomain.UnhandledException += AppDomainUnhandledException;

            try
            {
                var context = CustomApplicationContext.Create(new SplashForm());
                Application.Run(context);
            }
            catch (Exception ex)
            {
                HandleException(ex);
            }
        }