Exemple #1
0
        private void PageDownloader_PagesDownloadCancelled(object sender, PageDownloadCompletedEventArgs e)
        {
            if (string.IsNullOrEmpty(WebBrowser.DocumentText))
            {
                return;
            }

            WebBrowser.Document?.InvokeScript("__onPagesDownloadCancelled", e.ToObjectArray());
        }
Exemple #2
0
        // doesn't work.

        /*
         * private void ListsPanel_VisibleChanged(object sender, EventArgs e)
         * {
         *      settings.Panels.Lists.IsCollapsed = !splitContainer3.Panel1.Visible;	//splitContainer3.Panel1Collapsed;
         * }
         *
         * private void DetailsPanel_VisibleChanged(object sender, EventArgs e)
         * {
         *      settings.Panels.Details.IsCollapsed = !splitContainer2.Panel2.Visible;	//splitContainer2.Panel2Collapsed;
         * }
         */

        private void PageDownloader_PagesDownloadCompleted(object sender, PageDownloadCompletedEventArgs e)
        {
            if (Settings.Plugins.Archive.AutoCreate &&
                archiveWriters.Count > 0)
            {
                pluginSystem.CreateArchive(e.Metadata, Settings.Plugins.Archive.AutoDeletePagesFolder);
            }

            if (Settings.Plugins.ConvertMetadata.AutoCreate &&
                metadataConverters.Count > 0)
            {
                pluginSystem.ConvertMetadata(e.Metadata);
            }
        }
Exemple #3
0
 private void Job_PagesDownloadCancelled(object sender, PageDownloadCompletedEventArgs e)
 {
     PagesDownloadCancelled.Invoke(sender, e);
 }
Exemple #4
0
 protected virtual void OnPagesDownloadCompleted(PageDownloadCompletedEventArgs e)
 {
     PagesDownloadCompleted.Invoke(this, e);
 }