Inheritance: System.EventArgs
Esempio n. 1
0
 protected virtual void OnHCBeforeNavigate(HtmlControlEventArgs e)
 {
     if (HCBeforeNavigate != null)
     {
         // Invokes the delegates.
         HCBeforeNavigate(this, e);
     }
 }
Esempio n. 2
0
		protected virtual void OnHCBeforeNavigate(HtmlControlEventArgs e)
		{
			if (HCBeforeNavigate != null)
			{
				// Invokes the delegates.
				HCBeforeNavigate(this, e);
			}
		}
Esempio n. 3
0
        //note: this old version of before navigate is being used because of a bug in the.net framework.
        //win this bug is fixed, we should look at switching to using BeforeNavigate2
        protected void OnBeforeNavigate(string url, int flags, string targetFrameName,
                                        ref object postData, string headers, ref bool wasHandled)
        {
            // Let the owning class know
            HtmlControlEventArgs e = new HtmlControlEventArgs(url);

            OnHCBeforeNavigate(e);

            /*
             * try
             * {
             *      System.Windows.Forms.MessageBox.Show("Going to URL: " + url);
             *      //wasHandled=m_hostShell.HandleNavigationEvent(URL);
             * }
             * catch (Exception error)
             * {
             *      System.Windows.Forms.MessageBox.Show("There was an error handling the click. "
             + error.Message, "Program Error");
             + }
             */
        }
Esempio n. 4
0
        public void OnBeforeNavigate(object sender, HtmlControlEventArgs e)
        {
            CheckDisposed();

            m_iURLCounter++;
            m_iMaxURLCount = Math.Max(m_iMaxURLCount, m_iURLCounter);
            SetBackButtonEnabledState();
            SetForwardButtonEnabledState();
        }
Esempio n. 5
0
		//note: this old version of before navigate is being used because of a bug in the.net framework.
		//win this bug is fixed, we should look at switching to using BeforeNavigate2
		protected void OnBeforeNavigate(string url, int flags, string targetFrameName,
				ref object postData, string headers, ref bool wasHandled)
		{
			// Let the owning class know
			HtmlControlEventArgs e = new HtmlControlEventArgs(url);
			OnHCBeforeNavigate(e);
			/*
			try
			{
				System.Windows.Forms.MessageBox.Show("Going to URL: " + url);
				//wasHandled=m_hostShell.HandleNavigationEvent(URL);
			}
			catch (Exception error)
			{
				System.Windows.Forms.MessageBox.Show("There was an error handling the click. "
					+ error.Message, "Program Error");
			}
			*/
		}