private void btnNuovaLista_Click(object sender, EventArgs e) { InsertLista newForm = new InsertLista(); newForm.ShowDialog(); LoadData(); }
private void btnEdit_Click(object sender, EventArgs e) { if (grdListe.SelectedRows.Count == 1) { string attitudine = grdListe.SelectedRows[0].Cells["CdAttitudine"].Value.ToString(); InsertLista newForm = new InsertLista(attitudine); newForm.ShowDialog(); LoadData(); } }