Example #1
0
        private void AfConf_Click(object sender, EventArgs e)
        {
            DBConnectTest bb = new DBConnectTest();

            bb.Liaison(id_ad, id_cd);

            AfConf.Hide();
            BtAff.Show();
        }
Example #2
0
        private void BtAff_Click(object sender, EventArgs e)
        {
            int x = AFlistAdherent.SelectedIndex;
            int y = AFlistclub.SelectedIndex;

            id_ad = cd[x].GetID();
            id_cd = dc[y].GetID();

            AfConf.Show();
            BtAff.Hide();
        }
Example #3
0
        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();
        }