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(); } }
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(); } }