private void Btn_yeniKayit_Click(object sender, EventArgs e) { string hata = ""; BusinessLogicLayer.BLL bLL = new BusinessLogicLayer.BLL(); int ReturnValue = bLL.SatisKaydiEkle(Convert.ToInt32(numUpD_y_ULC.Value), Convert.ToInt32(combo_y_isim.SelectedValue), combo_y_isim.Text, Convert.ToInt32(numUpD_y_kamera.Value), Convert.ToInt32(numUpD_y_nvr.Value), Convert.ToInt32(numUpD_y_videoDuvar.Value), Convert.ToInt32(numUpD_y_isistasyonu.Value), Convert.ToInt32(numUpD_y_klavye.Value), dateTime_y_tarih.Value, txt_y_lisanskodu.Text, txt_y_donanimid.Text, txt_y_aciklama.Text, out hata); if (ReturnValue > 0) { MessageBox.Show("Yeni kayıt eklendi", "Bilgilendirme", MessageBoxButtons.OK, MessageBoxIcon.Information); yenile(); } else { MessageBox.Show("Hatali giriş", hata, MessageBoxButtons.OK, MessageBoxIcon.Warning); } }