protected BrowserPane(bool showNavigation) { htmlViewPane = new HtmlViewPane(showNavigation); htmlViewPane.WebBrowser.DocumentTitleChanged += new EventHandler(TitleChange); htmlViewPane.Closed += PaneClosed; TitleChange(null, null); }
public bool IsValid(object caller, Condition condition) { HtmlViewPane pane = (HtmlViewPane)caller; string url = pane.Url.ToString(); string pattern = condition.Properties["urlRegex"]; string options = condition.Properties["options"]; if (options != null && options.Length > 0) { return(Regex.IsMatch(url, pattern, (RegexOptions)Enum.Parse(typeof(RegexOptions), options, true))); } else { return(Regex.IsMatch(url, pattern)); } }
public virtual void GoSearch(HtmlViewPane pane) { pane.Navigate(HtmlViewPane.DefaultSearchUrl); }
public virtual void GoHome(HtmlViewPane pane) { pane.Navigate(HtmlViewPane.DefaultHomepage); }
public virtual void DocumentCompleted(HtmlViewPane pane, WebBrowserDocumentCompletedEventArgs e) { }
public virtual void InterceptNavigate(HtmlViewPane pane, WebBrowserNavigatingEventArgs e) { }