예제 #1
0
        private void btnAddTool_Click(object sender, EventArgs e)
        {
            frmTool frm = new frmTool();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                PopulateGrid();
            }
        }
예제 #2
0
        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();
            }
        }