Example #1
0
        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();
        }
Example #2
0
        private static void MainInternal(ProcessArguments args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.ApplicationExit += Application_ApplicationExit;

            var duplex = PlatformCommon.CreateClientDuplex(args.ParentProcessId, () => new BrowserHost());
            var splash = ShowSplash(args.SplashPath);

            InitializeCef();
            var form = new MainForm(duplex, splash);

            BrowserHost.Form = form;
            Application.Run(form);
        }