NBTExplorer/NBTExplorerMac/Program.cs

42 lines
1.1 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Windows.Forms;
2012-11-05 04:18:25 +00:00
using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.ObjCRuntime;
namespace NBTExplorer
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
2012-11-05 04:18:25 +00:00
//[STAThread]
static void Main (string[] args)
{
2012-11-05 04:18:25 +00:00
NSApplication.Init ();
NSApplication.Main (args);
//Application.EnableVisualStyles();
//Application.SetCompatibleTextRenderingDefault(false);
///Application.Run(new MainForm());
}
2012-11-05 04:18:25 +00:00
/*public static void StaticInitFailure (Exception e)
{
Console.WriteLine("Static Initialization Failure:");
Exception original = e;
while (e != null) {
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
e = e.InnerException;
}
MessageBox.Show("Application failed during static initialization: " + original.Message);
Application.Exit();
2012-11-05 04:18:25 +00:00
}*/
}
}