private void GenererDocumentsCallBack(string folderPath, string codeDocument) { if (!string.IsNullOrWhiteSpace(folderPath)) { foreach (Inscription ins in this.SelectedGroupe.Inscriptions.Where(i => i.StatutInscription.Ordre != 3)) { var gen = new GenerateurDocumentPDF( ServiceDocumentAdapter.InscriptionToDonneesDocument(this.repoInfosClub.GetFirst(), ins), string.Concat(folderPath, @"\", this.GetDocumentFileName(codeDocument, ins)) ); gen.CreerDocument(codeDocument); } this.ShowUserNotification(ResGroupes.InfosDocumentsGeneres); } }
private void GenererDocumentCallBack(string filePath, string codeDocument) { if (!string.IsNullOrWhiteSpace(filePath)) { var gen = new GenerateurDocumentPDF( ServiceDocumentAdapter.InscriptionToDonneesDocument(this.repoInfosClub.GetFirst(), this.SelectedInscription), filePath ); gen.CreerDocument(codeDocument); this.ShowUserNotification(ResInscriptions.InfosDocumentGenere); } }