Ejemplo n.º 1
0
        private void Engine_TerminateEvent()
        {
            AppContext.ExitThread();

            if (GuiUtils.IsUnix())
            {
                System.Windows.Forms.Application.Exit();
            }
            //Application.Exit(); // Removed in 2.12, otherwise lock Core thread. Still required in Linux edition.
        }
Ejemplo n.º 2
0
        private void Engine_TerminateEvent()
        {
            if (SplashWindow != null)
            {
                SplashWindow.RequestClose();
            }

            if (MainWindow != null)
            {
                MainWindow.RequestClose();
            }

            if (AppContext != null)
            {
                AppContext.ExitThread();
            }

            if (GuiUtils.IsUnix())
            {
                System.Windows.Forms.Application.Exit();
            }
            //Application.Exit(); // Removed in 2.12, otherwise lock Core thread. Still required in Linux edition.
        }