Esempio n. 1
0
        public WinFormium(string initialUrl)
        {
            if (!IsDesignMode)
            {
                BrowserWrapper = new WebBrowserControl(initialUrl);
                Controls.Add(BrowserWrapper);
                BrowserWrapper.Dock = DockStyle.Fill;
                BrowserWrapper.SendToBack();

                webBrowserForm = new WebBrowserFormImplement(this, this.Chromium);
            }

            splashPanel = new SplashPanelImplement(this, this.Chromium);
        }
Esempio n. 2
0
        public ChromFXBaseForm(string initialUrl)
        {
            FormHandle = this.Handle;


            if (!IsDesignMode)
            {
                BrowserWrapper = new WebBrowserControl(initialUrl);
                Controls.Add(BrowserWrapper);
                BrowserWrapper.Dock = DockStyle.Fill;
                BrowserWrapper.SendToBack();
                webBrowserForm             = new WebBrowserFormImplement(this, this.Chromium);
                Chromium.OnBrowserMessage += OnWebBrowserCoreMessage;
            }

            splashPanel = new SplashPanelImplement(this, this.Chromium);
        }