private void DgvInccident_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { Incident incident = dgvInccident.CurrentRow.DataBoundItem as Incident; if (incident == null) { return; } LocationForm form = new LocationForm(incident); form.ShowDialog(); }
private void Location_btn_Click(object sender, EventArgs e) { LocationForm locFrm = new LocationForm(); locFrm.ShowDialog(); }