private void btnAgregarDato_Click(object sender, EventArgs e) { frmAgregarDatoPrueba newForm = new frmAgregarDatoPrueba(testLocal); newForm.ShowDialog(); cargarGrillaSiniestrosP(); }
private void btnModificarDato_Click(object sender, EventArgs e) { if (dgvDatosPrueba.SelectedRows.Count == 1) { frmAgregarDatoPrueba frmAgregarSP = new frmAgregarDatoPrueba(testLocal, (SiniestroPrueba)dgvDatosPrueba.CurrentRow.DataBoundItem); frmAgregarSP.ShowDialog(); cargarGrillaSiniestrosP(); } else { MessageBox.Show("Debe seleccionar una fila!"); } }