SnakeGame/SnakeGame/Program.cs
2017-01-07 23:53:36 +01:00

32 lines
774 B
C#

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
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[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);
}
}
}