Exemple #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (comboBox1.Text == "Gestionaire de stock")
     {
         Pièce_de_rechangeDAO.supprimer(textBox2.Text);
     }
 }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            MemoryStream mem = new MemoryStream();

            pictureBox1.Image = Image.FromStream(mem);
            if (comboBox1.Text == "Gestionaire de stock")
            {
                Pièce_de_rechangeDAO.Update(textBox2.Text, textBox3.Text, float.Parse(textBox4.Text), pictureBox1.Text, textBox5.Text, Convert.ToDateTime(dateTimePicker1.Text));
            }
        }