private void agregar_Click(object sender, EventArgs e) { var frm = new VehiculoAddForm(); frm.ShowDialog(); GetData(); }
private void editar_Click(object sender, EventArgs e) { if (vehiculoBindingSource.Current == null) { MessageBox.Show("Seleccione un vehiculo"); } dynamic current = vehiculoBindingSource.Current; var idBien = current.IdBien; var frm = new VehiculoAddForm(idBien); frm.ShowDialog(); GetData(); }