private void CertificateInfoToUI(List <string> hashes, CertificateSelector certificateSelector)
 {
     if (hashes == null)
     {
         return;
     }
     hashes.Sort();
     if (certificateSelector != null)
     {
         List <CertificateSelector.CertificateDetails> certificateList = new List <CertificateSelector.CertificateDetails>();
         foreach (string hash in hashes)
         {
             CertificateSelector.CertificateDetails certificateData = new CertificateSelector.CertificateDetails();
             certificateData.Hash     = hash;
             certificateData.FileName = "<unknown>";
             certificateList.Add(certificateData);
         }
         certificateSelector.SetCertificateList(certificateList);
     }
 }
Example #2
0
 private void CertificateInfoToUI(string hashesString, CertificateSelector certificateSelector)
 {
     if (String.IsNullOrEmpty(hashesString))
     {
         return;
     }
     string[] hashes = hashesString.Split('/');
     Array.Sort <string>(hashes);
     if (certificateSelector != null)
     {
         List <CertificateSelector.CertificateData> certificateList = new List <CertificateSelector.CertificateData>();
         foreach (string hash in hashes)
         {
             CertificateSelector.CertificateData certificateData = new CertificateSelector.CertificateData();
             certificateData.Hash     = hash;
             certificateData.FileName = "<unknown>";
             certificateList.Add(certificateData);
         }
         certificateSelector.SetCertificateList(certificateList);
     }
 }