private void dgvSubRisks_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { SubRiskForm subRisk = new SubRiskForm(dgvSubRisks.CurrentCell, connectionString, this, readOnly); try { subRisk.Show(); } catch (Exception) { subRisk = null; } }
private void openToolStripMenuItem_Click(object sender, EventArgs e) { SubRiskForm subRisk = new SubRiskForm(dgvSubRisks.CurrentCell, connectionString, this, readOnly); try { subRisk.Show(); } catch (Exception) { subRisk = null; } }