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

            WebBrowser.Document?.InvokeScript("__onPageDownloadReportProgress", e.ToObjectArray());
        }
Esempio n. 2
0
File: Taskbar.cs Progetto: NHxD/NHxD
        private void PageDownloader_PageDownloadReportProgress(object sender, PageDownloadReportProgressEventArgs e)
        {
            if (loadCount >= loadTotal)
            {
                return;
            }

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

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