Exemplo n.º 1
0
        private void valider_Click(object sender, EventArgs e)
        {
            this.Hide();
            ProduitAjoute produitAjoute = new ProduitAjoute();

            produitAjoute.Show();
        }
Exemplo n.º 2
0
        private void ajouter_Click(object sender, EventArgs e)
        {
            ProduitAjoute produitAjoute = new ProduitAjoute();
            DBConect      db            = new DBConect();

            db.Initialize();

            db.insererProduit(textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text, textBox6.Text, textBox7.Text);
            produitAjoute.Show();
            this.Hide();
        }