CPDFInfoControl.xaml.cs 856 B

12345678910111213141516171819202122232425262728293031
  1. using ComPDFKitViewer.PdfViewer;
  2. using System;
  3. using System.Windows.Controls;
  4. namespace Compdfkit_Tools.PDFControl
  5. {
  6. public partial class CPDFInfoControl : UserControl
  7. {
  8. public CPDFViewer pdfViewer;
  9. public event EventHandler CloseInfoEvent;
  10. public CPDFInfoControl()
  11. {
  12. InitializeComponent();
  13. }
  14. public void InitWithPDFViewer(CPDFViewer pdfViewer)
  15. {
  16. this.pdfViewer = pdfViewer;
  17. CPDFAbstractInfoControl.InitWithPDFViewer(pdfViewer);
  18. CPDFCreateInfoControl.InitWithPDFViewer(pdfViewer);
  19. CPDFSecurityInfoControl.InitWithPDFViewer(pdfViewer);
  20. }
  21. private void CloseInfoButton_Click(object sender, System.Windows.RoutedEventArgs e)
  22. {
  23. CloseInfoEvent?.Invoke(this, new EventArgs());
  24. }
  25. }
  26. }