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; } }
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; } }