private void Modifica_Click(object sender, EventArgs e) { FormGestione dialogAddMod = new FormGestione(this, ListBoxV.SelectedIndex); if (dialogAddMod.ShowDialog() == DialogResult.OK) { dbUtils.CreateBackup(dbFilePath); listUtils.UpdateDb(ListaVeicoli, connectStr); Start(); } }
private void Nuovo_Click(object sender, EventArgs e) { FormGestione dialogAddMod = new FormGestione(this); dialogAddMod.ShowDialog(); }