private void e_cmdImprimer_Click(object sender, EventArgs e) { List<c_courreur> listeInscrits = (from string Plaque in v_Course.listeInscritsEnString.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries) select (v_listeCourreurs.Find(c => c.numeroInterne == int.Parse(Plaque.Substring(0, 3))))).ToList(); formImpression fI = new formImpression(listeInscrits); v_tempsAuTour.Clear(); v_tempsAuTour = (from string temps in lBPassage.Items select temps).ToList(); fI.ShowDialog(); }
private void e_cmdExportExcel_Click(object sender, EventArgs e) { List<c_courreur> listeInscrits = (from string Plaque in v_Course.listeInscritsEnString.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries) select (v_listeCourreurs.Find(c => c.numeroInterne == int.Parse(Plaque.Substring(0, 3))))).ToList(); formImpression fI = new formImpression(listeInscrits); fI.ExportExcel(); }