Пример #1
0
 private void _existingMessagesHandleLinkClick(object sender, Gecko.GeckoDomEventArgs e)
 {
     Gecko.GeckoHtmlElement clicked = e.Target;
     if (clicked != null && clicked.TagName == "A")
     {
         e.Handled = true;
         _model.HandleLinkClicked(new Uri(clicked.GetAttribute("href")));
     }
 }
Пример #2
0
 private void _existingMessagesDisplay_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (e.Url.Scheme == "about" || e.Url.Scheme == "file")
     {
         return;
     }
     e.Cancel = true;
     _model.HandleLinkClicked(e.Url);
 }