private void btnTK_XacNhan_Click(object sender, EventArgs e) { _rownIndex = grvData.FocusedRowHandle; frmError frm = new frmError(); frm.ErrorModel = (ModuleErrorModel)ModuleErrorBO.Instance.FindByPK(TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID))); if (frm.ShowDialog() == DialogResult.OK) { loadGrid(); } }
private void btnEdit_Click(object sender, EventArgs e) { int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID)); if (id <= 0) { return; } frmError frm = new frmError(); frm.ErrorModel = (ModuleErrorModel)ModuleErrorBO.Instance.FindByPK(id); if (frm.ShowDialog() == DialogResult.OK) { loadGrid(); } }