/// <summary>Raises the <see cref="HistoryGotoIndex"/> event.</summary> /// <param name="e">The data for the event.</param> protected virtual void OnHistoryGotoIndex(GeckoHistoryGotoIndexEventArgs e) { var evnt = (EventHandler <GeckoHistoryGotoIndexEventArgs>)Events[HistoryGotoIndexEvent]; if (evnt != null) { evnt(this, e); } }
/// <summary>Raises the <see cref="HistoryGotoIndex"/> event.</summary> /// <param name="e">The data for the event.</param> protected virtual void OnHistoryGotoIndex( GeckoHistoryGotoIndexEventArgs e ) { var evnt = ( EventHandler<GeckoHistoryGotoIndexEventArgs> ) Events[ HistoryGotoIndexEvent ]; if ( evnt != null ) evnt( this, e ); }
bool nsISHistoryListener.OnHistoryGotoIndex(int aIndex, nsIURI aGotoURI) { GeckoHistoryGotoIndexEventArgs e = new GeckoHistoryGotoIndexEventArgs(new Uri(nsString.Get(aGotoURI.GetSpecAttribute)), aIndex); OnHistoryGotoIndex(e); return !e.Cancel; }