private void PageDownloader_PagesDownloadCancelled(object sender, PageDownloadCompletedEventArgs e) { if (string.IsNullOrEmpty(WebBrowser.DocumentText)) { return; } WebBrowser.Document?.InvokeScript("__onPagesDownloadCancelled", e.ToObjectArray()); }
// 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); } }
private void Job_PagesDownloadCancelled(object sender, PageDownloadCompletedEventArgs e) { PagesDownloadCancelled.Invoke(sender, e); }
protected virtual void OnPagesDownloadCompleted(PageDownloadCompletedEventArgs e) { PagesDownloadCompleted.Invoke(this, e); }