private void PageDownloader_PageDownloadReportProgress(object sender, PageDownloadReportProgressEventArgs e) { if (string.IsNullOrEmpty(WebBrowser.DocumentText)) { return; } WebBrowser.Document?.InvokeScript("__onPageDownloadReportProgress", e.ToObjectArray()); }
private void PageDownloader_PageDownloadReportProgress(object sender, PageDownloadReportProgressEventArgs e) { if (loadCount >= loadTotal) { return; } if (!e.Error.Equals("SKIP", StringComparison.OrdinalIgnoreCase)) { ++loadCount; } UpdateProgressBarValue(); }
private void Job_PageDownloadReportProgress(object sender, PageDownloadReportProgressEventArgs e) { PageDownloadReportProgress.Invoke(sender, e); }
protected virtual void OnPageDownloadReportProgress(PageDownloadReportProgressEventArgs e) { PageDownloadReportProgress.Invoke(this, e); }