/// <summary>Raises the <see cref="Navigated"/> event.</summary>
        /// <param name="e">The data for the event.</param>
        protected virtual void OnNavigated(GeckoNavigatedEventArgs e)
        {
            var evnt = (EventHandler <GeckoNavigatedEventArgs>)Events[NavigatedEvent];

            if (evnt != null)
            {
                evnt(this, e);
            }
        }
Example #2
0
        private void CleanupAfterNavigation(object sender, GeckoNavigatedEventArgs e)
        {
            Debug.Assert(!InvokeRequired);

            Application.Idle += new EventHandler(Application_Idle);

               //NO. We want to leave it around for debugging purposes. It will be deleted when the next page comes along, or when this class is disposed of
            //    		if(_tempHtmlFile!=null)
            //    		{
            //				_tempHtmlFile.Dispose();
            //    			_tempHtmlFile = null;
            //    		}
            //didn't seem to do anything:  _browser.WebBrowserFocus.SetFocusAtFirstElement();
        }
Example #3
0
 private void HandleWebKitBrowserNavigated(object sender, GeckoNavigatedEventArgs geckoNavigatedEventArgs)
 {
     statusLabel.Text = internalGecko.StatusText;
     navigationUrlBox.Text = internalGecko.Url.ToString();
 }
 private void RaiseNavigated(object sender, GeckoNavigatedEventArgs args)
 {
     if (Navigated != null)
         Navigated(this, new EventArgs());
 }
		/// <summary>Raises the <see cref="Navigated"/> event.</summary>
		/// <param name="e">The data for the event.</param>
		protected virtual void OnNavigated( GeckoNavigatedEventArgs e )
		{
			var evnt = ( EventHandler<GeckoNavigatedEventArgs> ) Events[ NavigatedEvent ];
			if ( evnt != null ) evnt( this, e );
		}
Example #6
0
		void nsIWebProgressListener.OnLocationChange(nsIWebProgress aWebProgress, nsIRequest aRequest, nsIURI aLocation, uint flags)
		{
			if (IsDisposed) return;

			Uri uri = new Uri(nsString.Get(aLocation.GetSpecAttribute));
			using (var domWindow = aWebProgress.GetDOMWindowAttribute().Wrap(x=>new GeckoWindow(x)))
			{

				bool sameDocument = ( flags & nsIWebProgressListenerConstants.LOCATION_CHANGE_SAME_DOCUMENT ) != 0;
				bool errorPage = ( flags & nsIWebProgressListenerConstants.LOCATION_CHANGE_ERROR_PAGE ) != 0;
				var ea = new GeckoNavigatedEventArgs( uri, aRequest, domWindow, sameDocument, errorPage );

				OnNavigated( ea );
			}
			UpdateCommandStatus();
		}
Example #7
0
 private void Browser_Navigated(object sender, Gecko.GeckoNavigatedEventArgs e)
 {
     URLTB.Text = Browser.Url.AbsoluteUri;
 }
Example #8
0
 void _browser_Navigated(object sender, GeckoNavigatedEventArgs e)
 {
     ThumbnailOrder order = (ThumbnailOrder) ((GeckoWebBrowser) sender).Tag;
     order.Done = true;
 }
Example #9
0
 void wbBrowser_Navigated(object sender, GeckoNavigatedEventArgs e)
 {
     string url = string.Empty;
     url = ((GeckoWebBrowser)sender).Url.ToString();
     if (url != "about:blank")
         tbxAddress.Text = url;
 }