private static void Main()
{
try
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
CreateSplashScreen();
var worker = new Worker();
worker.ProgressUpdate += worker_ProgressUpdate;
_splashScreen.UpdateProgress("Loading Framework");
var mainFrame = new MainFrame();
mainFrame.Closing += new System.ComponentModel.CancelEventHandler(mainFrame_Closing);
_splashScreen.UpdateProgress("Initializing Context");
ATMLContext.Initialize();
var tr = new Thread(worker.DoWork);
tr.Start();
Application.Run(mainFrame);
}
catch (Exception e)
{
try
{
Program.SplashScreen.Completed = true;
MessageBox.Show(e.Message + Resources.CRLF + e.StackTrace);
LogManager.Error(e);
//ATMLErrorForm.ShowError(e);
}
catch (Exception ee)
{
LogManager.Error(ee);
}
Application.Exit();
}
}