public HtmlViewPane(bool showNavigation)
 {
     this.Dock = DockStyle.Fill;
     base.Size = new Size(500, 500);
     this.webBrowser = new ExtendedWebBrowser();
     this.webBrowser.Dock = DockStyle.Fill;
     this.webBrowser.Navigating += new WebBrowserNavigatingEventHandler(this.WebBrowserNavigating);
     this.webBrowser.NewWindowExtended += new NewWindowExtendedEventHandler(this.NewWindow);
     this.webBrowser.Navigated += new WebBrowserNavigatedEventHandler(this.WebBrowserNavigated);
     this.webBrowser.StatusTextChanged += new EventHandler(this.WebBrowserStatusTextChanged);
     this.webBrowser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(this.WebBrowserDocumentCompleted);
     base.Controls.Add(this.webBrowser);
     if (showNavigation)
     {
         this.toolStrip = ToolbarService.CreateToolStrip(this, "/ViewContent/Browser/Toolbar");
         this.toolStrip.GripStyle = ToolStripGripStyle.Hidden;
         base.Controls.Add(this.toolStrip);
     }
 }
 public WebBrowserExtendedEvents(ExtendedWebBrowser browser)
 {
     this.browser = browser;
 }