Exemple #1
0
        /// <summary>
        /// actualise la liste d'adherent
        /// </summary>
        private void actuAD()
        {
            ListeAD.Items.Clear();
            DBConnectTest db = new DBConnectTest();

            bb = db.Read();
            foreach (Adherent unAdherent in bb)
            {
                ListeAD.Items.Add(unAdherent.GetNom());
            }
        }
Exemple #2
0
        /// <summary>
        /// Aux moment de la chargement de la page
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void interfaceAdherent_Load(object sender, EventArgs e)
        {
            DBConnectTest db = new DBConnectTest();

            bb = db.Read();
            foreach (Adherent unAdherent in bb)
            {
                ListeAD.Items.Add(unAdherent.GetNom());
            }

            ConfirmeAD.Hide();
        }
        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();
        }