private void btnAdd_Click(object sender, EventArgs e) { frmGearDetail frm = new frmGearDetail(); if (frm.ShowDialog() == DialogResult.OK) { LoadInfoSearch(); } }
private void btnEdit_Click(object sender, EventArgs e) { int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID)); if (id == 0) { return; } GearModel model = (GearModel)GearBO.Instance.FindByPK(id); int catId = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colWipGCQT)); _rownIndex = grvData.FocusedRowHandle; frmGearDetail frm = new frmGearDetail(); frm.GearModel = model; if (frm.ShowDialog() == DialogResult.OK) { LoadInfoSearch(); } }