Пример #1
0
 public static void Exit(bool updateInProgress)
 {
     NotificationServiceFactory.get().unregister();
     if (!updateInProgress && PrepareExit())
     {
         ApplicationShouldTerminateAfterDonationPrompt();
     }
     DefaultBackgroundExecutor.get().shutdown();
     System.Windows.Forms.Application.Exit();
 }
Пример #2
0
        public static void Exit(bool updateInProgress)
        {
            // Already shutting down. Do nothing.
            if (!applicationShutdown.WaitOne(0))
            {
                return;
            }

            NotificationServiceFactory.get().unregister();
            if (!updateInProgress && PrepareExit())
            {
                ApplicationShouldTerminateAfterDonationPrompt();
            }
            DefaultBackgroundExecutor.get().shutdown();
            _application.Shutdown(updateInProgress);
            _application.ExitThreadCore();
        }