void Kayit() { if (nesne.KitapKontrol(txtKitapKod.Text) == true) { nesne.KitapKayit(txtKitapKod.Text, txtKitapAd.Text, cbKategoriAd.Text, txtYazarAd.Text, txtRafNo.Text, cbKitapDurum.Text, txtAciklama.Text); MessageBox.Show("Kayıt tamamlanmıştır.", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("Kitap kodu daha önceden tanımlanmıştır.", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }