public void AddHandler (NavigationRequestedEventHandler value) { if (Events[WebBrowser.NavigationRequestedEvent] == null) { if (owner.Navigation != null) { nsIWebBrowser browser = (nsIWebBrowser) owner.navigation.navigation; browser.setParentURIContentListener (this); } } Events.AddHandler (WebBrowser.NavigationRequestedEvent, value); }
protected virtual void OnNavigationRequested(string path) { NavigationRequestedEventHandler handler = NavigationRequested; if (handler != null) { handler(this, path); } }
public void AddHandler(NavigationRequestedEventHandler value) { if (Events[WebBrowser.NavigationRequestedEvent] == null) { if (owner.Navigation != null) { nsIWebBrowser browser = (nsIWebBrowser)owner.navigation.navigation; browser.setParentURIContentListener(this); } } Events.AddHandler(WebBrowser.NavigationRequestedEvent, value); }
bool nsIURIContentListener.onStartURIOpen(nsIURI aURI) { NavigationRequestedEventHandler eh = (NavigationRequestedEventHandler)(Events[WebBrowser.NavigationRequestedEvent]); if (eh != null) { AsciiString uri = new Mono.Mozilla.AsciiString(""); aURI.getSpec(uri.Handle); NavigationRequestedEventArgs args = new NavigationRequestedEventArgs(uri.ToString()); eh(this, args); return(args.Cancel); } return(true); }
public void RemoveHandler (NavigationRequestedEventHandler value) { Events.RemoveHandler (WebBrowser.NavigationRequestedEvent, value); }
public void RemoveHandler(NavigationRequestedEventHandler value) { Events.RemoveHandler(WebBrowser.NavigationRequestedEvent, value); }