private void btnKulüpSil_Click(object sender, EventArgs e) { ENTITYKULUP ent = new ENTITYKULUP(); ent.KULUPID = Convert.ToInt16(txtkulupId.Text); BLLKULUP.SIL(ent.KULUPID); KulupListesi(); }
private void BtnKulupSil_Click(object sender, EventArgs e) { ENTITYKULUP ent = new ENTITYKULUP(); ent.KULUPID = Convert.ToInt32(TxtKulupID.Text); BLLKULUP.SIL(ent.KULUPID); KulupListesi(); }
private void BtnKulupSil_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.KULUPID = Convert.ToInt16(TxtKulupId.Text); BLLKULUP.SIL(ent.KULUPID); KulupListesi(); }
private void btnKulupSil_Click(object sender, EventArgs e) { var id = 0; if (txtKulupId.Text != "") { id = Convert.ToInt16(txtKulupId.Text); } var islemSonuc = BLLKULUP.SIL(id); ShowMessage(islemSonuc, ResourcePresentation.KulupSilTrue, ResourcePresentation.KulupSilFalse); KulupListesi(); }
private void btnKULUPSIL_Click(object sender, EventArgs e) { ENTITYOGRENCIKULUP ent = new ENTITYOGRENCIKULUP(); ent.KULUPID = Convert.ToInt16(txtKULUPID.Text); bool sil = BLLKULUP.SIL(ent.KULUPID); if (sil) { MessageBox.Show("Başarıyla silindi"); } else { MessageBox.Show("Eksik veya hatalı giriş yapıldı"); } KulupListesi(); }