//utils fonction info public void search(String nom, String prenom) { PatientMapper pM = new PatientMapper(); lp = pM.Find(nom, prenom); if (Util.isNULL(lp)) { labelRecherche.Text = "Aucun patient trouvé"; } else { labelRecherche.Text = ""; lbPatients.Items.Clear(); for (int i = 0; i < lp.Count(); i++) { lbPatients.Items.Add((i + 1).ToString() + " " + (lp.ElementAt(i)).Nom + " " + (lp.ElementAt(i)).Prénom + " " + (lp.ElementAt(i)).NuméroAssuranceMaladie); } if (lbPatients.Items.Count > 0) { lbPatients.SetSelected(0, true); } } }