예제 #1
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;
     }
 }
예제 #2
0
파일: ForumBrowser.cs 프로젝트: rsdn/janus
		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;
			}
		}