void KulupListesi() { //Klüp listesini DataGridView ögesinde göstermek için formumuza tanıtıyoruz. List <ENTITIYKULUP> KlpLst = BLLKULUP.LISTELE(); dataGridView1.DataSource = KlpLst; }
private void btnKulupKaydet_Click(object sender, EventArgs e) { EntityKulup ent = new EntityKulup(); ent.KulupAd = txtKulupAd.Text; BLLKULUP.KulupEkle(ent); KulupListele(); }
void KULUPLISTESI() { List <ENTITYKULUP> kuluplist = BLLKULUP.LISTELE(); cmbkulup.DisplayMember = "KULUPAD"; cmbkulup.ValueMember = "KULUPID"; cmbkulup.DataSource = kuluplist; }
private void btnKulupSil_Click(object sender, EventArgs e) { EntityKulup ent = new EntityKulup(); ent.KulupId = Convert.ToInt16(txtKulupId.Text); BLLKULUP.sil(ent.KulupId); KulupListele(); }
private void BtnKulupSil_Click(object sender, EventArgs e) { ENTITYKULUP ent = new ENTITYKULUP(); ent.KULUPID = Convert.ToInt32(TxtKulupID.Text); BLLKULUP.SIL(ent.KULUPID); KulupListesi(); }
void KulupListesi() { List <EntitKulup> Kuluplist = BLLKULUP.Lıstele(); CMBKULUP.DisplayMember = "KULUPAD"; CMBKULUP.ValueMember = "KULUPID"; CMBKULUP.DataSource = Kuluplist; }
private void btnKulüpKaydet_Click(object sender, EventArgs e) { ENTITYKULUP ent = new ENTITYKULUP(); ent.KULUPAD = txtkulupAd.Text; BLLKULUP.EKLE(ent); KulupListesi(); }
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 BtnKulupGuncelle_Click(object sender, EventArgs e) { EntityKulup ent = new EntityKulup(); ent.KulupAd = txtKulupAd.Text; ent.KulupId = Convert.ToInt16(txtKulupId.Text); BLLKULUP.KulupGuncelle(ent); }
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 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 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(); }
void KulupListesi() { List <ENTITYKULUP> KlpLst = BLLKULUP.LISTELE(); cbKulüp.DisplayMember = "KULUPAD"; cbKulüp.ValueMember = "KULUPID"; cbKulüp.DataSource = KlpLst; dataGridView1.DataSource = KlpLst; this.Text = "Kulüp Listesi"; }
void KulupListele() { List <EntityKulup> kulupList = BLLKULUP.Listele(); comboOgrKulup.DisplayMember = "KULUPAD"; //comboboxta gözükecek değer comboOgrKulup.ValueMember = "KULUPID"; //arkaplanda çalışacak değer comboOgrKulup.DataSource = kulupList; dataGridView1.DataSource = kulupList; this.Text = "Kulüp Listesi"; }
private void KulupListesi() { dataGridView1.DataSource = null; List <ENTITYKULUP> kulupList = BLLKULUP.LISTELE(); dataGridView1.DataSource = kulupList; this.Text = ResourcePresentation.KulupListesi; }
private void OgrenciForm_Load(object sender, EventArgs e) { //form açıldığında otomatik olarak Notları gösterecektir. OgrenciListesi(); List <ENTITIYKULUP> KlpLst = BLLKULUP.LISTELE(); cmbkulup.DisplayMember = "KULUPAD"; cmbkulup.ValueMember = "KULUPID"; cmbkulup.DataSource = KlpLst; }
private void btnKulupKaydet_Click(object sender, EventArgs e) { ENTITYKULUP entKulup = new ENTITYKULUP { KULUPAD = txtKulupAd.Text }; var islemSonucu = BLLKULUP.EKLE(entKulup); ShowMessage(ReturnTrueFalse(islemSonucu), ResourcePresentation.KulupKaydetTrue, ResourcePresentation.KulupKaydetFalse); 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 SetKulupListesiToComboBox() { List <ENTITYKULUP> kulupList = BLLKULUP.LISTELE(); kulupList.Insert(0, new ENTITYKULUP() { KULUPID = -1, KULUPAD = ResourcePresentation.cmbKulupDefaultValue }); cmbKulup.DisplayMember = ResourceTblKulup.KULUP_AD; cmbKulup.ValueMember = ResourceTblKulup.KULUP_ID; cmbKulup.DataSource = kulupList; cmbKulup.SelectedIndex = 0; }
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(); }
private void btnKULUPKAYDET_Click(object sender, EventArgs e) { ENTITYOGRENCIKULUP klp = new ENTITYOGRENCIKULUP(); klp.KULUPAD = txtKULUPAD.Text; int kaydet = BLLKULUP.EKLE(klp); if (kaydet > 0) { MessageBox.Show(klp.KULUPAD + " başarıyla eklendi"); } else { MessageBox.Show("Eksik veya hatalı giriş yapıldı"); } 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(); }