Beispiel #1
0
        private void btn_kirala_Click(object sender, EventArgs e)
        {
            int donenveri = bll.KitapKirala(dtp_baslangictarihi.Value, dtp_bitistarihi.Value, Convert.ToDouble(lbl_fiyatsec.Text), Convert.ToInt32(lbl_kitapidsec.Text), Convert.ToInt32(lbl_uyeidsec.Text));

            if (donenveri > 0)
            {
                MessageBox.Show("Kitap Kiralandı!", "Bilgilendirme", MessageBoxButtons.OK, MessageBoxIcon.Information);
                KiralamaGoster();
            }
            else
            {
                MessageBox.Show("Kitap Kiralanamadı", "Uyarı!", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }