private void button4_Click(object sender, EventArgs e) { platDAO acces = new platDAO(); listeP = acces.GetAllPlats(); TousPlatsView monForm = new TousPlatsView(listeP); monForm.Show(); }
static Plat Rechercher(List <Plat> pl, String nom) { platDAO acces = new platDAO(); pl = acces.GetAllPlats(); foreach (Plat p in pl) { if (p.Nom == nom) { return(p); } } return(null); }