using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace SnakeGame { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } public static void HandleException(Exception e) { if (e.GetType() == typeof(ThreadAbortException)) { } else MessageBox.Show("Error!\n" + e.Message); } } }