private void AfConf_Click(object sender, EventArgs e) { DBConnectTest bb = new DBConnectTest(); bb.Liaison(id_ad, id_cd); AfConf.Hide(); BtAff.Show(); }
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(); }