private string CreateCertificate(long userid, string password, string doc1, string doc2, string doc3, string isrcCode, string trackName, CoopArtistList coopArtists)
 {
     string ret = string.Empty;
     using (CertificateManager mgr = new CertificateManager(userid, password))
     {
         mgr.AddTrackName(trackName);
         if (!string.IsNullOrEmpty(doc1))
             mgr.AddDocument(doc1);
         if (!string.IsNullOrEmpty(doc2))
             mgr.AddDocument(doc2);
         if (!string.IsNullOrEmpty(doc3))
             mgr.AddDocument(doc3);
         if (!string.IsNullOrEmpty(isrcCode))
             mgr.AddIsrcCode(isrcCode);
         foreach (CoopArtist coop in coopArtists)
             mgr.AddCoopArtist(coop.Artist, coop.Role);
         mgr.CreateCertificate(string.Format("{0}.cer", DateTime.UtcNow.ToString("yyyyMMddHHmmss")));
         ret = mgr.CertificateFilename;
     }
     return ret;
 }
 private string CreateCertificate(long userid, string doc1, string doc2, string doc3, string isrcCode, string trackName, CoopArtistList coopArtists)
 {
     ClientInfo ci = null;
     using (Database db = new MySqlDatabase())
     {
         ci = db.GetClientInfo(Util.UserId);
     }
     string ret = string.Empty;
     using (CertificateManager mgr = new CertificateManager(userid, string.Empty))
     {
         mgr.AddTrackName(trackName);
         if (!string.IsNullOrEmpty(doc1))
             mgr.AddDocument(doc1);
         if (!string.IsNullOrEmpty(doc2))
             mgr.AddDocument(doc2);
         if (!string.IsNullOrEmpty(doc3))
             mgr.AddDocument(doc3);
         if (!string.IsNullOrEmpty(isrcCode))
             mgr.AddIsrcCode(isrcCode);
         foreach (CoopArtist coop in coopArtists)
             mgr.AddCoopArtist(coop.Artist, coop.Role);
         if (ci != null)
             mgr.Agent = ci.GetFullName();
         mgr.CreateCertificate(string.Format("{0}.cer", DateTime.UtcNow.ToString("yyyyMMddHHmmss")));
         ret = mgr.CertificateFilename;
     }
     return ret;
 }
 private string CreateCertificate(long userid, string password, string doc1, string doc2, string doc3)
 {
     string ret = string.Empty;
     using (CertificateManager mgr = new CertificateManager(userid, password))
     {
         if (!string.IsNullOrEmpty(doc1))
             mgr.AddDocument(doc1);
         if (!string.IsNullOrEmpty(doc2))
             mgr.AddDocument(doc2);
         if (!string.IsNullOrEmpty(doc3))
             mgr.AddDocument(doc3);
         mgr.CreateCertificate(string.Format("ID{0:D10}.cer", userid));
         ret = mgr.CertificateFilename;
     }
     return ret;
 }