private void btnNuovoGiocatore_Click(object sender, EventArgs e) { InsertGiocatore insertPlayerForm = new InsertGiocatore(); insertPlayerForm.ShowDialog(); LoadData(); }
private void btnEdit_Click(object sender, EventArgs e) { object selectedValue = grdGiocatori.SelectedRows[0].Cells["NumeroSW"].Value; if (selectedValue != null) { InsertGiocatore editPlayerForm = new InsertGiocatore((long)selectedValue); editPlayerForm.ShowDialog(); LoadData(); } }