Пример #1
0
 /// <summary>
 /// Finaliza la ejecución de la aplicacion
 /// </summary>
 internal void shutDown()
 {
     if (currentExample != null)
     {
         currentExample.close();
     }
     tgcD3dDevice.shutDown();
     texturesPool.clearAll();
 }
Пример #2
0
        /// <summary>
        /// Finaliza la ejecución de la aplicacion
        /// </summary>
        public void shutDown()
        {
            if (currentExample != null)
            {
                currentExample.close();
            }
            tgcD3dDevice.shutDown();
            texturesPool.clearAll();

            MainForm.ApplicationRunning = false;

            //Matar proceso principal a la fuerza
            Process currentProcess = Process.GetCurrentProcess();

            currentProcess.Kill();
        }