예제 #1
0
 private X509Certificate2 GetCertificate(X509CertificateContainer cert)
 {
     if (cert != null)
     {
         return cert.Certificate;
     }
     else
     {
         return null;
     }
 }
예제 #2
0
 private void ViewCertificate(X509CertificateContainer cert)
 {
     if ((cert != null) && (cert.PublicCertificate != null))
     {
         X509Certificate2UI.DisplayCertificate(cert.PublicCertificate, Handle);
     }
 }