Esempio n. 1
0
 private void button4_Click(object sender, EventArgs e)
 {
     if (comboBox1.SelectedItem != null)
     {
         string[] bol;
         string   sec = comboBox1.SelectedItem.ToString();
         bol = sec.Split('*');
         urunler urun = new urunler();
         urun.urun = bol[0];
         urun.urunsil();
         gridview();
     }
     else
     {
         MessageBox.Show("Ürünü Seçiniz");
     }
 }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text != "" && comboBox1.SelectedItem != null)
     {
         string[] bol;
         string   sec = comboBox1.SelectedItem.ToString();
         bol = sec.Split('*');
         urunler urun = new urunler();
         urun.urun = bol[0];
         urun.adet = textBox1.Text;
         urun.urunadet();
         gridview();
     }
     else
     {
         MessageBox.Show("Tüm alanları doldurun");
     }
 }
Esempio n. 3
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (textBox4.Text != "" && textBox5.Text != "" && textBox6.Text != "")
     {
         urunler urun = new urunler();
         urun.urun  = textBox4.Text;
         urun.fiyat = textBox5.Text;
         urun.adet  = textBox6.Text;
         urun.urunekle();
         gridview();
         comboBox1.Items.Clear();
         comboBox2.Items.Clear();
         combobox();
     }
     else
     {
         MessageBox.Show("Tüm alanları doldurun");
     }
 }