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