private void btnDuzenle_Click(object sender, EventArgs e) { int secilen = Convert.ToInt32(gridView2.GetFocusedRowCellValue(colId)); _entity = context.Tanimlar.Where(c => c.Id == secilen).SingleOrDefault(); KayitAc(); }
private void btnsec_Click(object sender, EventArgs e) { int secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(gridColıd)); _entity = context.Tanimlar.Where(c => c.Id == secilen).SingleOrDefault(); this.Close(); }
private void BtnSec_Click(object sender, EventArgs e) { int secilen = Convert.ToInt32(gridTanim.GetFocusedRowCellValue(colId)); _entity = context.Tanimlar.Where(c => c.Id == secilen).SingleOrDefault(); secildi = true; this.Close(); }
private void btnDuzenle_Click(object sender, EventArgs e) { if (gridTanim.RowCount != 0) { int secilen = Convert.ToInt32(gridTanim.GetFocusedRowCellValue(colId)); _entity = context.Tanimlar.Where(c => c.Id == secilen).SingleOrDefault(); KayitAc(); } else { MessageBox.Show("Lütfen Seçim Yapınız."); } }
public void TanimKontrol(string tanim, frmTanim.TanimTuru tanimTuru) { Tanim t = DB.Tanimlar.FirstOrDefault(x => x.Tanimi == tanim && x.Turu == tanimTuru.ToString()); if (t == null) { t = new Tanim { Tanimi = tanim, Turu = tanimTuru.ToString() }; DB.Tanimlar.Add(t); DB.SaveChanges(); } }
private void btnEkle_Click(object sender, EventArgs e) { _entity = new Tanim(); KayitAc(); }
private void btnEkle_Click(object sender, EventArgs e) { KayitAc(); _tanimEntity = new Tanim(); TanimBinding(); }
private void btnSec_Click(object sender, EventArgs e) { secildi = true; _tanimEntity = (Tanim)gridTanim.GetFocusedRow(); this.Close(); }
private void btnVazgec_Click(object sender, EventArgs e) { _tanimEntity = null; KayitKapat(); }
private void btnDuzenle_Click(object sender, EventArgs e) { KayitAc(); _tanimEntity = (Tanim)gridTanim.GetFocusedRow(); TanimBinding(); }