VerifyDigitalSignatureControl.xaml.cs 983 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Windows;
  3. using ComPDFKit.Controls.Helper;
  4. using ComPDFKit.Controls.PDFControl;
  5. using ComPDFKit.DigitalSign;
  6. namespace ComPDFKit.Controls.PDFControl
  7. {
  8. public partial class VerifyDigitalSignatureControl : Window
  9. {
  10. private CPDFSignature signature;
  11. public event EventHandler<CPDFSignature> ViewCertificateEvent;
  12. public VerifyDigitalSignatureControl()
  13. {
  14. InitializeComponent();
  15. Title = LanguageHelper.SigManager.GetString("Title_Sig");
  16. }
  17. public void InitWithSignature(CPDFSignature signature)
  18. {
  19. DigitalSignatureInfoControl.InitWithSignature(signature);
  20. DigitalSignatureValiditySummaryControl.InitWithSignature(signature);
  21. this.signature = signature;
  22. }
  23. private void ViewCertificates_OnClick(object sender, RoutedEventArgs e)
  24. {
  25. ViewCertificateEvent?.Invoke(this, signature);
  26. }
  27. }
  28. }