/// <summary> /// Notifies the <see cref="P:Parent"/> that a file download is about to occur. /// </summary> /// <param name="activeDocument"><see langword="true"/> if the file is an Active Document; otherwise <see langword="false"/>.</param> /// <param name="cancel"><see langword="true"/> if the download process should be canceled; otherwise <see langword="false"/>.</param> /// <returns> /// <see langword="true"/> to cancel the download process; otherwise <see langword="false"/>. /// </returns> /// <remarks>If a file download dialog box can be displayed, this event fires prior to the appearance of the dialog box.</remarks> public override bool DownloadingFile(bool activeDocument, bool cancel) { var e = new WebBrowserDownloadingFileEventArgs(activeDocument, cancel); this.Parent.OnDownloadingFile(e); return(e.Cancel); }
private void WebBrowserEx_FileDownloading(object sender, WebBrowserDownloadingFileEventArgs e) { Trace.WriteLine(string.Format("ActiveDocumentServerLoading={0}, Cancel={1}", e.ActiveDocumentServerLoading, e.Cancel), "[" + this.instance + "] WebBrowserEx.FileDownloading"); }