예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Connexion       c  = new Connexion();
            OleDbConnection cn = c.connect();

            cn.Open();
            VolADO vl = new VolADO();

            vl.supprimer_vol(selected_row, cn);
            dataGridView1.Rows.Remove(selected_row);
        }
예제 #2
0
        private void ok_bt_Click(object sender, EventArgs e)
        {
            Connexion       c  = new Connexion();
            OleDbConnection cn = c.connect();

            cn.Open();
            VolADO    vl = new VolADO();
            DataTable dt = vl.recherche(txt_rech_vol.Text, cn);

            dataGridView1.DataSource = dt;
        }
예제 #3
0
        private void frm_liste_vol_Load(object sender, EventArgs e)
        {
            Connexion       c   = new Connexion();
            OleDbConnection con = c.connect();

            con.Open();
            VolADO    vol = new VolADO();
            DataTable dt  = vol.liste_vol(con);

            dataGridView1.DataSource = dt;
        }
예제 #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            Connexion       c   = new Connexion();
            OleDbConnection con = c.connect();

            con.Open();

            Vol v = new Vol(Int32.Parse(txt_num_vol.Text), txt_dest_vol.Text, date_dep.Value, date_arr.Value, txt_heure_dep.Text, txt_heure_arr.Text);

            VolADO vol = new VolADO();

            vol.ajouter_vol(v, con);
        }