/// <summary> /// active aux moment de charger les fenetres /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void interfaceClub_Load(object sender, EventArgs e) { DBConnectTest db = new DBConnectTest(); CB = db.ReadClub(); foreach (club unclub in CB) { listClub.Items.Add(unclub.GetNom()); } ConfirmerCB.Hide(); }
/// <summary> /// actualise la liste d'un club /// </summary> public void actuCB() { listInfoCB.Items.Clear(); DBConnectTest db = new DBConnectTest(); CB = db.ReadClub(); foreach (club unclub in CB) { listClub.Items.Add(unclub.GetNom()); } }
private void InterfaceAffectation_Load(object sender, EventArgs e) { DBConnectTest bb = new DBConnectTest(); DBConnectTest dd = new DBConnectTest(); cd = bb.Read(); dc = dd.ReadClub(); foreach (Adherent unAdherent in cd) { AFlistAdherent.Items.Add(unAdherent.GetNom()); } foreach (club unClub in dc) { AFlistclub.Items.Add(unClub.GetNom()); } AfConf.Hide(); }