private void AjoutClub_Load(object sender, EventArgs e) { listTypeclub.listTypesClubs = connect.ReadType(); foreach (var item in listTypeclub.listTypesClubs) { listBox1.Items.Add(item.libelle); } }
public static List <TypeClub> creationliste() { List <TypeClub> listcréer = new List <TypeClub>(); DAOclub connect = new DAOclub(); listcréer = connect.ReadType(); return(listcréer); }