Bloom.Program.Run C# (CSharp) Method

Run() private static method

private static Run ( ) : void
return void
        private static void Run()
        {
            _earliestWeShouldCloseTheSplashScreen = DateTime.Now.AddSeconds(3);

            Settings.Default.Save();

            Application.Idle += Startup;

            Sldr.Initialize();
            try
            {
                Application.Run();
            }
            catch (System.AccessViolationException nasty)
            {
                Logger.ShowUserATextFileRelatedToCatastrophicError(nasty);
                System.Environment.FailFast("AccessViolationException");
            }

            Settings.Default.Save();
            Sldr.Cleanup();
            Logger.ShutDown();

            if (_projectContext != null)
                _projectContext.Dispose();
        }