CertificateInfoControl.xaml.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Security.Permissions;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. using ComPDFKit.DigitalSign;
  17. namespace Compdfkit_Tools.PDFControl {
  18. public partial class CertificateInfoControl : UserControl
  19. {
  20. public event EventHandler TrustCertificateEvent;
  21. public CertificateInfoControl()
  22. {
  23. InitializeComponent();
  24. }
  25. public void LoadCertificateInfo(CPDFSignatureCertificate certificate)
  26. {
  27. SummaryControl.LoadSummaryInfo(certificate);
  28. CertificateDetailControl.LoadDetailInfo(certificate);
  29. ConfidenceControl.LoadConfidenceInfo(certificate);
  30. ConfidenceControl.TrustCertificateEvent += (sender, args) =>
  31. {
  32. TrustCertificateEvent?.Invoke(sender, null);
  33. };
  34. }
  35. }
  36. }