internal WebBrowserBase() { webHost = Mono.WebBrowser.Manager.GetNewInstance(); bool loaded = webHost.Load(this.Handle, this.Width, this.Height); if (!loaded) { return; } state = State.Loaded; webHost.MouseClick += new Mono.WebBrowser.DOM.NodeEventHandler(OnWebHostMouseClick); webHost.Focus += new EventHandler(OnWebHostFocus); webHost.CreateNewWindow += new Mono.WebBrowser.CreateNewWindowEventHandler(OnWebHostCreateNewWindow); webHost.LoadStarted += new LoadStartedEventHandler(OnWebHostLoadStarted); webHost.LoadCommited += new LoadCommitedEventHandler(OnWebHostLoadCommited); webHost.ProgressChanged += new Mono.WebBrowser.ProgressChangedEventHandler(OnWebHostProgressChanged); webHost.LoadFinished += new LoadFinishedEventHandler(OnWebHostLoadFinished); if (!suppressDialogs) { webHost.Alert += new Mono.WebBrowser.AlertEventHandler(OnWebHostAlert); } webHost.StatusChanged += new StatusChangedEventHandler(OnWebHostStatusChanged); webHost.SecurityChanged += new SecurityChangedEventHandler(OnWebHostSecurityChanged); webHost.ContextMenuShown += new ContextMenuEventHandler(OnWebHostContextMenuShown); }
internal WebBrowserBase () { webHost = Mono.WebBrowser.Manager.GetNewInstance (); bool loaded = webHost.Load (this.Handle, this.Width, this.Height); if (!loaded) return; state = State.Loaded; webHost.MouseClick += new Mono.WebBrowser.DOM.NodeEventHandler (OnWebHostMouseClick); webHost.Focus += new EventHandler (OnWebHostFocus); webHost.CreateNewWindow += new Mono.WebBrowser.CreateNewWindowEventHandler (OnWebHostCreateNewWindow); webHost.LoadStarted += new LoadStartedEventHandler (OnWebHostLoadStarted); webHost.LoadCommited += new LoadCommitedEventHandler (OnWebHostLoadCommited); webHost.ProgressChanged += new Mono.WebBrowser.ProgressChangedEventHandler (OnWebHostProgressChanged); webHost.LoadFinished += new LoadFinishedEventHandler (OnWebHostLoadFinished); if (!suppressDialogs) webHost.Alert += new Mono.WebBrowser.AlertEventHandler (OnWebHostAlert); webHost.StatusChanged += new StatusChangedEventHandler (OnWebHostStatusChanged); webHost.SecurityChanged += new SecurityChangedEventHandler (OnWebHostSecurityChanged); webHost.ContextMenuShown += new ContextMenuEventHandler (OnWebHostContextMenuShown); }