Esempio n. 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Create the window
            SwarmCoordinator MainWindow = new SwarmCoordinator();

            MainWindow.Init();

            while (MainWindow.Ticking)
            {
                Application.DoEvents();
                MainWindow.Run();

                // Yield a little time to the system
                System.Threading.Thread.Sleep(100);
            }

            MainWindow.Destroy();

            if (MainWindow.Restarting())
            {
                CheckForUpdate();
                Application.Restart();
            }
        }
Esempio n. 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault( false );

            // Create the window
            SwarmCoordinator MainWindow = new SwarmCoordinator();
            MainWindow.Init();

            while( MainWindow.Ticking )
            {
                Application.DoEvents();
                MainWindow.Run();

                // Yield a little time to the system
                System.Threading.Thread.Sleep( 100 );
            }

            MainWindow.Destroy();

			if( MainWindow.Restarting() )
			{
				CheckForUpdate();
				Application.Restart();
			}
        }