private void btnNew_Click(object sender, EventArgs e) { using (frmClearances clearances = new frmClearances(0)) { clearances.ShowDialog(); ReloadGrids(); } }
private void dgUnprocessed_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Right) { int clearanceID = int.Parse(dgUnprocessed.Rows[e.RowIndex].Cells[0].Value.ToString()); using (frmClearances clearances = new frmClearances(clearanceID)) { clearances.ShowDialog(); ReloadGrids(); } } }