CPDFInfoControl.xaml.cs 845 B

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