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; } }
public Dates(SubRiskForm form) { EvalDate = form.dtp.Value.Date; FromDate = DateTime.Parse(form.lblFromDate.Text); ToDate = DateTime.Parse(form.lblToDate.Text); }