private void btnDuzenle_Click(object sender, EventArgs e) { secilen = Convert.ToInt32(gridView2.GetFocusedRowCellValue(colId)); _entity = context.Tanimlar.Where(c => c.Id == secilen).SingleOrDefault(); KayitAc(); Listele(); }
private void btnDuzenle_Click(object sender, EventArgs e) { int secilen = (int)gridTanim.GetFocusedRowCellValue(colId); _entity = context.Tanimlar.Where(c => c.Id == secilen).Single(); KayitAc(); }
private void btnSec_Click(object sender, EventArgs e) { secilen = Convert.ToInt32(gridView2.GetFocusedRowCellValue(colId)); _entity = context.Tanimlar.Where(c => c.Id == secilen).SingleOrDefault(); Secildi = true; this.Close(); }
private void controlMenu_DuzenleClick(object sender, EventArgs e) { controlMenu.KayitAc = true; groupTanimBilgi.Visible = true; tanimEntity = (Entities.Tables.Tanim)gridTanim.GetFocusedRow(); TanimBinding(); }
private void btnSec_Click(object sender, EventArgs e) { int secilen = (int)gridTanim.GetFocusedRowCellValue(colId); _entity = context.Tanimlar.Where(c => c.Id == secilen).SingleOrDefault(); Secildi = true; this.Close(); }
private void controlMenu_EkleClick(object sender, EventArgs e) { controlMenu.KayitAc = true; groupTanimBilgi.Visible = true; tanimEntity = new Entities.Tables.Tanim(); tanimEntity.Id = Guid.NewGuid(); TanimBinding(); }
private void btnDuzenle_Click(object sender, EventArgs e) { if (gridTanim.RowCount.Equals(0)) { XtraMessageBox.Show("Düzenlenecek Kayıt Bulunamadı."); } else { int secilen = Convert.ToInt32(gridTanim.GetFocusedRowCellValue(colId)); _entitiy = context.Tanimlar.Where(c => c.KullaniciID == RoleTool.kullaniciEntity.KullaniciID && c.Id == secilen).SingleOrDefault(); KayitAc(); } }
private void btnEkle_Click(object sender, EventArgs e) { _entity = new Entities.Tables.Tanim(); KayitAc(); }
private void controlMenu_SecClick(object sender, EventArgs e) { Secildi = true; tanimEntity = (Entities.Tables.Tanim)gridTanim.GetFocusedRow(); Close(); }