private static void StartMessageLoop() { try { if (MainForm.Create() != null) { Log.Init(); _appContext = new ApplicationContext(TheForm); Application.Run(_appContext); } } finally { InitializedEvent.Set(); } }
public void Initialize() { Main = CreateForm("Main"); Main.Visible = false; Main.Invalidated += (sender, args) => InitializedEvent.Set(); }