SnakeGame/SnakeGame/Program.cs

33 lines
774 B
C#
Raw Permalink Normal View History

2017-01-07 23:09:43 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
2017-01-07 23:23:59 +01:00
using System.Threading;
2017-01-07 23:09:43 +01:00
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());
}
2017-01-07 23:23:23 +01:00
public static void HandleException(Exception e)
{
2017-01-07 23:23:59 +01:00
if (e.GetType() == typeof(ThreadAbortException))
{
}
else
MessageBox.Show("Error!\n" + e.Message);
2017-01-07 23:23:23 +01:00
}
2017-01-07 23:09:43 +01:00
}
}