Example #1
0
 protected BrowserPane(bool showNavigation)
 {
     htmlViewPane = new HtmlViewPane(showNavigation);
     htmlViewPane.WebBrowser.DocumentTitleChanged += new EventHandler(TitleChange);
     htmlViewPane.Closed += PaneClosed;
     TitleChange(null, null);
 }
Example #2
0
        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));
            }
        }
Example #3
0
 public virtual void GoSearch(HtmlViewPane pane)
 {
     pane.Navigate(HtmlViewPane.DefaultSearchUrl);
 }
Example #4
0
 public virtual void GoHome(HtmlViewPane pane)
 {
     pane.Navigate(HtmlViewPane.DefaultHomepage);
 }
Example #5
0
 public virtual void DocumentCompleted(HtmlViewPane pane, WebBrowserDocumentCompletedEventArgs e)
 {
 }
Example #6
0
 public virtual void InterceptNavigate(HtmlViewPane pane, WebBrowserNavigatingEventArgs e)
 {
 }