예제 #1
0
        /// <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();
        }
예제 #2
0
        /// <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());
            }
        }
예제 #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();
        }