public void RaiseBeforeNavigate(
     string url,
     int flags,
     string targetFrameName,
     ref object postData,
     string headers,
     ref bool cancel)
 {
     if (String.Compare(url, "about:blank", true) == 0)
     {
         cancel = false;
     }
     else
     {
         BeforeNavigateEventArgs e = new BeforeNavigateEventArgs(url, false);
         if (BeforeNavigate != null)
         {
             BeforeNavigate(this, e);
         }
         cancel = e.Cancel;
     }
 }
Beispiel #2
0
		public void RaiseBeforeNavigate(
			string url,
			int flags,
			string targetFrameName,
			ref object postData,
			string headers,
			ref bool cancel)
		{
			if (String.Compare(url, "about:blank", true) == 0)
				cancel = false;
			else
			{
				BeforeNavigateEventArgs e = new BeforeNavigateEventArgs(url, false);
				if (BeforeNavigate != null)
					BeforeNavigate(this, e);
				cancel = e.Cancel;
			}
		}