示例#1
0
        private void PageDownloader_PageDownloadReportProgress(object sender, PageDownloadReportProgressEventArgs e)
        {
            if (string.IsNullOrEmpty(WebBrowser.DocumentText))
            {
                return;
            }

            WebBrowser.Document?.InvokeScript("__onPageDownloadReportProgress", e.ToObjectArray());
        }
示例#2
0
文件: Taskbar.cs 项目: NHxD/NHxD
        private void PageDownloader_PageDownloadReportProgress(object sender, PageDownloadReportProgressEventArgs e)
        {
            if (loadCount >= loadTotal)
            {
                return;
            }

            if (!e.Error.Equals("SKIP", StringComparison.OrdinalIgnoreCase))
            {
                ++loadCount;
            }

            UpdateProgressBarValue();
        }
示例#3
0
 private void Job_PageDownloadReportProgress(object sender, PageDownloadReportProgressEventArgs e)
 {
     PageDownloadReportProgress.Invoke(sender, e);
 }
示例#4
0
 protected virtual void OnPageDownloadReportProgress(PageDownloadReportProgressEventArgs e)
 {
     PageDownloadReportProgress.Invoke(this, e);
 }