private static void AppInitialized(Application app, ProcessArguments args) { var splash = ShowSplash(args.SplashPath); var duplex = PlatformCommon.CreateClientDuplex(args.ParentProcessId, () => new BrowserHost()); var form = new MainForm(duplex, splash); form.Show(); SettingsApplier.CenterForm(form); form.Visible = false; BrowserHost.Form = form; form.Closed += (sender, eventArgs) => app.Quit(); }
private static SplashForm ShowSplash(string path) { if (string.IsNullOrEmpty(path)) { return(null); } var splash = new SplashForm(path); splash.Show(); SettingsApplier.CenterForm(splash); splash.BringToFront(); return(splash); }