private void ButtonInCite_Snippet_Click(object sender, RoutedEventArgs e)
 {
     ButtonInCitePopup.Close();
     {
         FeatureTrackingManager.Instance.UseFeature(Features.InCite_AddNewCitationSnippet_FromDocument);
         PDFDocumentCitingTools.CiteSnippetPDFDocument(false, pdf_renderer_control_stats.pdf_document);
         e.Handled = true;
     }
 }
        private void ButtonInCite_Snippet_Click(object sender, RoutedEventArgs e)
        {
            ButtonInCitePopup.Close();

            FeatureTrackingManager.Instance.UseFeature(Features.InCite_AddNewCitationSnippet_FromDocument);

            PDFDocument pdf_document = GetPDFDocument();

            ASSERT.Test(pdf_document != null);

            if (pdf_document != null)
            {
                PDFDocumentCitingTools.CiteSnippetPDFDocument(false, pdf_document);
            }

            e.Handled = true;
        }
예제 #3
0
        private void CreatePaperBibTeXTweet()
        {
            var pdf_document_bindable = DataContext as AugmentedBindable <PDFDocument>;

            if (null == pdf_document_bindable)
            {
                return;
            }

            PDFDocument pdf_document = pdf_document_bindable.Underlying;

            TxtTweet.Text = "I'm loving reading my PDFs using @Qiqqa http://qiqqa.com";
            if (!String.IsNullOrEmpty(pdf_document.TitleCombined))
            {
                TxtTweet.Text = String.Format("I'm busy reading {0} using @Qiqqa http://qiqqa.com", pdf_document.TitleCombined);
            }

            PDFDocumentCitingTools.CiteSnippetPDFDocument(true, pdf_document, GenerateRtfCitationSnippet_OnBibliographyReady);
        }