예제 #1
0
        void Button2Click(object sender, EventArgs e)
        {
            VolDao medoc = new VolDao();
            Vol    me    = new Vol(textBox4.Text, textBox9.Text, textBox3.Text, textBox7.Text, Convert.ToDateTime(textBox8.Text), Convert.ToDateTime(textBox11.Text), int.Parse(textBox14.Text), int.Parse(textBox12.Text), int.Parse(textBox15.Text), int.Parse(textBox6.Text), Double.Parse(textBox10.Text), textBox13.Text, textBox16.Text);

            medoc.insert(me);
        }
예제 #2
0
        void Button12Click(object sender, EventArgs e)
        {
            VolDao   medoc = new VolDao();
            Equipage me    = new Equipage(textBox16.Text, textBox15.Text, textBox5.Text, textBox14.Text, float.Parse(textBox11.Text));

            medoc.insertEquipage(me);
        }
예제 #3
0
        void Button2Click(object sender, EventArgs e)
        {
            VolDao vol = new VolDao();

            Vol[] volavo = new Vol[100];
            try{
                volavo = vol.findvol();
                this.dataGridView1.Rows.Clear();
                for (int i = 0; i < volavo.Length; i++)
                {
                    this.dataGridView1.Rows.Add(volavo[i].getnom().ToString(), volavo[i].getdepart().ToString(), volavo[i].getdestination().ToString(), volavo[i].getheureDepart().ToString(), volavo[i].getheureArrivee().ToString(), volavo[i].getheureVol().ToString() + " h", volavo[i].getprix().ToString("#,##0") + " €");
                }
            }catch (Exception ex) {
            }
        }
예제 #4
0
        void Button10Click(object sender, EventArgs e)
        {
            VolDao vol = new VolDao();

            Equipage[] volavo = new Equipage[100];
            try{
                volavo = vol.Equipage();
                this.dataGridView9.Rows.Clear();
                for (int i = 0; i < volavo.Length; i++)
                {
                    this.dataGridView9.Rows.Add(volavo[i].getnom().ToString(), volavo[i].getposte().ToString(), volavo[i].getsexe().ToString(), volavo[i].getsalaire().ToString("#,##0") + " €");
                }
            }catch (Exception ex) {
            }
        }
예제 #5
0
        void Button3Click(object sender, EventArgs e)
        {
            VolDao medoc = new VolDao();

            medoc.delete(textBox5.Text);
        }
예제 #6
0
        void Button1Click(object sender, EventArgs e)
        {
            VolDao medoc = new VolDao();

            medoc.updatetarif(textBox1.Text, double.Parse(textBox2.Text));
        }