Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Club    c   = new Club(tb_code.Text, tb_nom.Text, tb_rue.Text, tb_cp.Text, tb_ville.Text, Convert.ToDouble(tb_lat.Text), Convert.ToDouble(tb_lon.Text), tb_tel.Text, tb_courriel.Text, Convert.ToInt16(tb_effectifs.Text));
            DAOClub dao = new DAOClub();

            dao.recordAClub(c);
            ApplicationData.lesClubs.Add(c);
        }
Beispiel #2
0
        public static Club chargerUnClub(string c)
        {
            DAOClub dao = new DAOClub();

            return(dao.getAClubById(c));
        }
Beispiel #3
0
        public static void chargerLesClubs()
        {
            DAOClub dao = new DAOClub();

            lesClubs = dao.getAllClubs();
        }