private void CiteDocument(bool separate_author_and_date, bool as_snippet) { TextBlock text_block = ObjPDFDocuments.SelectedItem as TextBlock; if (null != text_block) { ListFormattingTools.DocumentTextBlockTag tag = (ListFormattingTools.DocumentTextBlockTag)text_block.Tag; ASSERT.Test(tag != null); ASSERT.Test(tag.pdf_document != null); if (as_snippet) { PDFDocumentCitingTools.CiteSnippetPDFDocument(false, tag.pdf_document); } else { PDFDocumentCitingTools.CitePDFDocument(tag.pdf_document, separate_author_and_date); } chw.Close(); } else { MessageBoxes.Info("Please select a citation to cite."); } }
private void CorrectStyleFilenameForNewDirectoryLocation() { // Get the style filename that is in the text box string style_filename = ConfigurationManager.Instance.ConfigurationRecord.InCite_LastStyleFile; string new_style_filename = PDFDocumentCitingTools.FindValidStyleFilename(style_filename); if (0 != String.Compare(new_style_filename, style_filename) && null != new_style_filename) { Logging.Info("Updating style filename from {0} to {1}", style_filename, new_style_filename); ConfigurationManager.Instance.ConfigurationRecord.InCite_LastStyleFile = new_style_filename; ConfigurationManager.Instance.ConfigurationRecord_Bindable.NotifyPropertyChanged(() => ConfigurationManager.Instance.ConfigurationRecord.InCite_LastStyleFile); } }
private CitationCluster GenerateCitationClusterFromCurrentSelection() { List <PDFDocument> selected_pdf_documents = library_control.ObjLibraryCatalogControl.SelectedPDFDocuments; return(PDFDocumentCitingTools.GenerateCitationClusterFromPDFDocuments(selected_pdf_documents)); }
private void ButtonRefresh_Click(object sender, RoutedEventArgs e) { PDFDocumentCitingTools.RefreshBibliography(); chw.Close(); }