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

            WebBrowser.Document?.InvokeScript("__onPagesDownloadCancelled", e.ToObjectArray());
        }
예제 #2
0
파일: MainForm.cs 프로젝트: NHxD/NHxD
        // 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);
            }
        }
예제 #3
0
파일: PageDownloader.cs 프로젝트: NHxD/NHxD
 private void Job_PagesDownloadCancelled(object sender, PageDownloadCompletedEventArgs e)
 {
     PagesDownloadCancelled.Invoke(sender, e);
 }
예제 #4
0
 protected virtual void OnPagesDownloadCompleted(PageDownloadCompletedEventArgs e)
 {
     PagesDownloadCompleted.Invoke(this, e);
 }