public void Start(string[] args)
{
// TODO handle command line arguments....
_mainForm = new MainForm();
_mainForm.Disposed += (o, e) =>
{
LiteDevelopSettings.Instance.Save();
Current = null;
};
_worker = new BackgroundWorker();
_worker.DoWork += (o, e) =>
{
InitializeExtensionHost();
LoadExtensions();
};
_worker.RunWorkerCompleted += (o, e) =>
{
OnInitializedApplication(EventArgs.Empty);
_splashScreen.Dispose();
};
_splashScreen = new SplashScreen();
_splashScreen.FadedIn += (o, e) =>
{
_worker.RunWorkerAsync();
};
Application.Run(_splashScreen);
Application.Run(_mainForm);
}