/// <summary> /// Written to produce certificates that were not collected on the day. 2017-01-22 /// </summary> /// <returns></returns> public string [] CustomOpenCert( ) { List <CertificateData> certs = new List <CertificateData>(); //foreach ( ACompetitor a in getCurrentChampionship().ListAllCompetitors().OrderBy(x => x.checkParameter("School")).ToList() ) //{ // if ( a.Result == null ) continue ; // if ( a.result.rank <= 13 ) continue; // if ( a.Result.CertificateEarned ) // certs.AddRange ( ACertificate.GenerateCertificates( a ) ); //} foreach (AEvent Event in getCurrentChampionship().listAllEvents()) { certs.AddRange(Event.getCertificateData( )); } List <string> tempFiles = new List <string>(); tempFiles.AddRange(PrintCertificates.SaveIndividualCertificates(certs, ((App)Application.Current).CurrentChampionship.getChampionshipExportsDir( ))); Exports.MergeMultiplePDFIntoSinglePDF(((App)Application.Current).CurrentChampionship.getChampionshipExportsDir( ) + "\\All Certs.pdf", tempFiles.ToArray( )); return(tempFiles.ToArray( )); }