public void DoWork()
{
try
{
Application.ApplicationExit+=delegate(object sender, EventArgs args) { LogManager.Info("{0} has exited.", ATMLContext.APPLICATION_NAME); };
LogManager.Debug("Loading Schemas... ", ATMLContext.APPLICATION_NAME);
OnProgressUpdate("Loading Schemas");
SchemaManager sm = SchemaManager.Instance;
sm.SchemaPath = ATMLContext.SchemaPath;
LogManager.Debug("Loading Signal Libraries... ", ATMLContext.APPLICATION_NAME);
OnProgressUpdate("Loading Signal Libraries");
XmlDocument tree = SignalManager.Instance.TSFSignalTree;
Program.SplashScreen.Completed = true;
LogManager.Info("{0} has completed loading.", ATMLContext.APPLICATION_NAME);
}
catch (Exception e )
{
Program.SplashScreen.Completed = true;
MessageBox.Show(e.Message + @"\r\n" + e.StackTrace);
LogManager.Error( e );
}
}