private void button3_Click(object sender, EventArgs e)
        {
            Add_Product frm = new Add_Product();

            frm.t1.Text               = this.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            frm.cbCat.Text            = this.dataGridView1.CurrentRow.Cells[1].Value.ToString();
            frm.t2.Text               = this.dataGridView1.CurrentRow.Cells[2].Value.ToString();
            frm.t3.Text               = this.dataGridView1.CurrentRow.Cells[3].Value.ToString();
            frm.t4.Text               = this.dataGridView1.CurrentRow.Cells[4].Value.ToString();
            frm.labelAdd_Produit.Text = "Mise à Jour du Produit : " + this.dataGridView1.CurrentRow.Cells[2].Value.ToString();
            frm.button2.Text          = "Mise à Jour";
            frm.state       = "Update";
            frm.t1.ReadOnly = true;
            byte[]       image = (byte[])prd.GET_IMG_PRODUCT(Convert.ToInt32(this.dataGridView1.CurrentRow.Cells[0].Value.ToString())).Rows[0][0];
            MemoryStream ms    = new MemoryStream(image);

            frm.pictureBox1.Image = Image.FromStream(ms);
            frm.ShowDialog();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Add_Product frm = new Add_Product();

            frm.ShowDialog();
        }
Beispiel #3
0
        private void btnANP_Click(object sender, EventArgs e)
        {
            Add_Product ap = new Add_Product();

            ap.ShowDialog();
        }