/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (EcoSystemGame game = new EcoSystemGame()) { game.Run(); } }
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(); }