private void btnKulüpGuncelle_Click(object sender, EventArgs e) { ENTITYKULUP ent = new ENTITYKULUP(); ent.KULUPAD = txtkulupAd.Text; ent.KULUPID = Convert.ToInt16(txtkulupId.Text); BLLKULUP.GUNCELLE(ent); KulupListesi(); }
private void BtnKulupGuncelle_Click(object sender, EventArgs e) { ENTITYKULUP ent = new ENTITYKULUP(); ent.KULUPAD = TxtKulupAd.Text; ent.KULUPID = Convert.ToInt32(TxtKulupID.Text); BLLKULUP.GUNCELLE(ent); KulupListesi(); }
private void BtnKulupGuncelle_Click(object sender, EventArgs e) { //ENTITYKULUP sınıfından oluşturduğumuz ent nesnesi, doldurulan ilgili alanlardaki verileri, hafızaya alıp veri tabanına işlenmesi için BLL katmanı üzerinden, gerekli koşulların sağlanması durumunda FACADE katmanına gönderiyor. ENTITIYKULUP ent = new ENTITIYKULUP(); ent.KULUPAD = TxtKulupAd.Text; ent.KULUPID = Convert.ToInt16(TxtKulupId.Text); BLLKULUP.GUNCELLE(ent); KulupListesi(); }
private void btnKULUPGUNCELLE_Click(object sender, EventArgs e) { ENTITYOGRENCIKULUP ent = new ENTITYOGRENCIKULUP(); ent.KULUPAD = txtKULUPAD.Text; ent.KULUPID = Convert.ToInt16(txtKULUPID.Text); bool guncelle = BLLKULUP.GUNCELLE(ent); if (guncelle) { MessageBox.Show("Başarıyla güncellendi"); } else { MessageBox.Show("Eksik veya hatalı giriş yapıldı"); } KulupListesi(); }
private void btnKulupGuncelle_Click(object sender, EventArgs e) { var id = 0; if (txtKulupId.Text != "") { id = Convert.ToInt16(txtKulupId.Text); } ENTITYKULUP entKulup = new ENTITYKULUP { KULUPID = id, KULUPAD = txtKulupAd.Text, }; var islemSonucu = BLLKULUP.GUNCELLE(entKulup); ShowMessage(islemSonucu, ResourcePresentation.KulupGuncelleTrue, ResourcePresentation.KulupGuncelleFalse); KulupListesi(); }