Exemple #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            platDAO acces = new platDAO();

            listeP = acces.GetAllPlats();
            TousPlatsView monForm = new TousPlatsView(listeP);

            monForm.Show();
        }
Exemple #2
0
        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);
        }