private void btnDuzenle_Click(object sender, EventArgs e) { secilen = gridView1.GetFocusedRowCellValue(colKullaniciAdi).ToString(); frmKullaniciIslem form = new frmKullaniciIslem(kullaniciDAL.GetByFilter(context, c => c.KullaniciAdi == secilen)); form.ShowDialog(); if (form.saved) { Guncelle(); } }
private void btnDuzenle_Click(object sender, EventArgs e) { if (GridViewKullanici.RowCount.Equals(0)) { XtraMessageBox.Show("Düzenlenecek Kayıt Bulunamadı."); } else { secilen = GridViewKullanici.GetFocusedRowCellValue(colKullaniciAdi).ToString(); FrmKullaniciIslem form = new FrmKullaniciIslem(kullaniciDal.GetByFilter(context, c => c.KullaniciAdi == secilen)); form.ShowDialog(); if (form.saved) { Guncelle(); } } }