Exemplo 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);
        }
Exemplo 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);
        }