private void editarToolStripMenuItem_Click(object sender, EventArgs e) { var id = int.Parse(dataGridView1.Rows[dataGridView1.SelectedCells[0].RowIndex].Cells[0].Value.ToString()); SingleVehiculo form = new SingleVehiculo(Enums.SaveAction.Editar, id); form.Show(); }
private void nuevoTipoDeVehículoToolStripMenuItem_Click(object sender, EventArgs e) { SingleVehiculo form = new SingleVehiculo(Enums.SaveAction.Agregar); form.Show(); }