Ejemplo n.º 1
0
 private void btnSat_Click(object sender, EventArgs e)
 {
     if ((string.IsNullOrEmpty(txtSatilanMiktar.Text)) || (string.IsNullOrEmpty(cmbSatilanAd.SelectedText)) || (string.IsNullOrEmpty(cmbSatilanMarka.SelectedText)) || (string.IsNullOrEmpty(cmbSatilanModel.SelectedText)))
     {
         MessageBox.Show("Alanlar boş geçilemez.");
         return;
     }
     UrunController.UrunSat(db, Convert.ToInt32(txtSatilanMiktar.Text), cmbSatilanAd.Text, cmbSatilanMarka.Text, cmbSatilanModel.Text);
 }
Ejemplo n.º 2
0
 private void btnStokArttır_Click(object sender, EventArgs e)
 {
     if ((string.IsNullOrEmpty(txtMiktar.Text)) || (string.IsNullOrEmpty(cmbStokAd.SelectedItem.ToString())) || (string.IsNullOrEmpty(cmbStokMarka.SelectedItem.ToString())) || (string.IsNullOrEmpty(cmbStokModel.SelectedItem.ToString())))
     {
         MessageBox.Show("Alanlar boş geçilemez.");
         return;
     }
     UrunController.UrunStokArttır(db, Convert.ToInt32(txtMiktar.Text), cmbStokAd.SelectedItem.ToString(), cmbStokMarka.SelectedItem.ToString(), cmbStokModel.SelectedItem.ToString());
 }
Ejemplo n.º 3
0
 private void btnSatınAl_Click(object sender, EventArgs e)
 {
     UrunController.UrunKaydet(db, txtAlinanAd.Text, txtAlinanMarka.Text, txtAlinanModel.Text);
     cmbSatilanAd.Items.Clear();
     cmbStokAd.Items.Clear();
     foreach (Esya es in db.Esya)
     {
         cmbStokAd.Items.Add(es.EsyaAdı);
         cmbSatilanAd.Items.Add(es.EsyaAdı);
     }
 }