private void btnAggiungiComponente_Click(object sender, EventArgs e) { if (grdSostanze.SelectedRows.Count == 1) { long progressivoOggetto = (long)grdSostanze.SelectedRows[0].Cells["Progressivo"].Value; AggiungiComponente newForm = new AggiungiComponente(progressivoOggetto); newForm.ShowDialog(); LoadComponentsGrid(); } }
private void btnAggiungiComponente_Click(object sender, EventArgs e) { if (grdSostanze.SelectedRows.Count == 1) { long progressivoOggetto = (long)grdSostanze.SelectedRows[0].Cells["Progressivo"].Value; AggiungiComponente newForm = new AggiungiComponente(progressivoOggetto); newForm.ShowDialog(); LoadComponentsGrid(); } }