Ejemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (EcoSystemGame game = new EcoSystemGame())
     {
         game.Run();
     }
 }
Ejemplo n.º 2
0
        private void btnLaunch_Click(object sender, EventArgs e)
        {
            Visible = false;

            Thread thread = new Thread(() =>
            {
                EcoSystemGame game = new EcoSystemGame();
                game.Run();
            });

            thread.Start();
            thread.Join();

            Application.Exit();
        }