private void btnOspite_Click(object sender, EventArgs e) { int index = VisualizzaDati.SelectedRows[0].Index; InserisciOspite form = new InserisciOspite(idNominativi[index], idEvento[listaEventi.SelectedIndex], Tavolo); form.ShowDialog(); }
private void VisualizzaDati_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int index = VisualizzaDati.SelectedRows[0].Index; InserisciOspite form = new InserisciOspite(idNominativi[index], idEvento[listaEventi.SelectedIndex], int.Parse(VisualizzaDati.SelectedRows[0].Cells[6].Value.ToString())); form.ShowDialog(); }