using System; using System.Windows; using Compdfkit_Tools.PDFControl; using ComPDFKit.DigitalSign; namespace Compdfkit_Tools.PDFControl { public partial class VerifyDigitalSignatureControl : Window { private CPDFSignature signature; public event EventHandler ViewCertificateEvent; public VerifyDigitalSignatureControl() { InitializeComponent(); } public void InitWithSignature(CPDFSignature signature) { DigitalSignatureInfoControl.InitWithSignature(signature); DigitalSignatureValiditySummaryControl.InitWithSignature(signature); this.signature = signature; } private void ViewCertificates_OnClick(object sender, RoutedEventArgs e) { ViewCertificateEvent?.Invoke(this, signature); } } }