private static void DoInterestingAnalysis_SimilarAuthors(PDFReadingControl pdf_reading_control, PDFDocument pdf_document) { // Populate the similar authors try { List <NameTools.Name> authors = SimilarAuthors.GetAuthorsForPDFDocument(pdf_document); MultiMap <string, PDFDocument> authors_documents = SimilarAuthors.GetDocumentsBySameAuthors(pdf_document.LibraryRef, pdf_document, authors); WPFDoEvents.InvokeAsyncInUIThread(() => { pdf_reading_control.SimilarAuthorsControl.SetItems(authors_documents); }); } catch (Exception ex) { Logging.Error(ex, "There was a problem creating the tag cloud for document {0}", pdf_document.Fingerprint); } }
private static void DoInterestingAnalysis_SimilarAuthors(PDFReadingControl pdf_reading_control, PDFRendererControl pdf_renderer_control, PDFRendererControlStats pdf_renderer_control_stats) { // Populate the similar authors try { List <NameTools.Name> authors = SimilarAuthors.GetAuthorsForPDFDocument(pdf_renderer_control_stats.pdf_document); MultiMap <string, PDFDocument> authors_documents = SimilarAuthors.GetDocumentsBySameAuthors(pdf_renderer_control_stats.pdf_document.Library, pdf_renderer_control_stats.pdf_document, authors); pdf_renderer_control.Dispatcher.Invoke(new Action(() => { pdf_reading_control.SimilarAuthorsControl.SetItems(authors_documents); } )); } catch (Exception ex) { Logging.Error(ex, "There was a problem creating the tag cloud for document {0}", pdf_renderer_control_stats.pdf_document.Fingerprint); } }