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

            WebBrowser.Document?.InvokeScript("__onPagesDownloadStarted", e.ToObjectArray());
        }
Esempio n. 2
0
File: Taskbar.cs Progetto: NHxD/NHxD
        private void PageDownloader_PagesDownloadEnqueued(object sender, PagesDownloadStartedEventArgs e)
        {
            if (e.PageIndices == null)
            {
                Metadata metadata = SearchResultCache.Find(e.GalleryId);

                if (metadata != null)
                {
                    AddTasks(metadata.Images.Pages.Count());
                }
            }
            else
            {
                AddTasks(e.PageIndices.Length);
            }
        }
Esempio n. 3
0
 private void Job_PagesDownloadStarted(object sender, PagesDownloadStartedEventArgs e)
 {
     PagesDownloadStarted.Invoke(sender, e);
 }
Esempio n. 4
0
 protected virtual void OnPagesDownloadStarted(PagesDownloadStartedEventArgs e)
 {
     PagesDownloadStarted.Invoke(this, e);
 }