private void btnAddTool_Click(object sender, EventArgs e) { frmTool frm = new frmTool(); if (frm.ShowDialog() == DialogResult.OK) { PopulateGrid(); } }
private void dgvTools_DoubleClick(object sender, EventArgs e) { if (dgvTools.CurrentCell == null) { return; } long PKID = long.Parse(dgvTools[0, dgvTools.CurrentCell.RowIndex].Value.ToString()); frmTool frm = new frmTool(PKID); if (frm.ShowDialog() == DialogResult.OK) { PopulateGrid(); } }