static void Main(string[] args)
{
try
{
System.Threading.Thread.CurrentThread.Name = "Main thread";
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.ThreadException += ApplicationThreadException;
if (WikiFunctions.Variables.UsingMono)
{
MessageBox.Show("AWB is not currently supported by mono", "Not supported",
MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
AwbDirs.MigrateDefaultSettings();
MainForm awb = new MainForm();
AWB = awb;
awb.ParseCommandLine(args);
Application.Run(awb);
}
catch (Exception ex)
{
WikiFunctions.ErrorHandler.Handle(ex);
}
}