private void tsbModifica_Click(object sender, EventArgs e) { FormDialogAddModifyVehicle dialogAddMod = new FormDialogAddModifyVehicle(this, listBoxVehicles.SelectedIndex); if (dialogAddMod.ShowDialog() == DialogResult.OK) { dbUtilities.CreateBackup(dbFilePath); listUtilities.UpdateDb(VehicleList, connStr); Start(); } }
private void tsmNuovo_Click(object sender, EventArgs e) { FormDialogAddModifyVehicle dialogAddMod = new FormDialogAddModifyVehicle(this); dialogAddMod.ShowDialog(); }