NBTExplorer/Program.cs

33 lines
824 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Windows.Forms;
2011-12-04 07:18:27 +00:00
namespace NBTExplorer
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main ()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
2012-08-31 05:29:32 +00:00
Application.Run(new MainForm());
}
2012-10-05 02:26:57 +00:00
public static void StaticInitFailure (Exception e)
{
Console.WriteLine("Static Initialization Failure:");
while (e != null) {
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
e = e.InnerException;
}
Application.Exit();
}
}
}