Beispiel #1
0
 private void btnAggiungiElemento_Click(object sender, EventArgs e)
 {
     if (grdEventi.SelectedRows.Count == 1)
     {
         if (grdEventi.Columns.Contains("Numero") && grdEventi.SelectedRows[0].Cells["Numero"].Value != null)
         {
             long codEvento = long.Parse(grdEventi.SelectedRows[0].Cells["Numero"].Value.ToString());
             AggiungiElementoAEvento newForm = new AggiungiElementoAEvento(codEvento);
             newForm.ShowDialog();
             this.loadSubGrids();
         }
     }
 }
Beispiel #2
0
 private void btnAggiungiElemento_Click(object sender, EventArgs e)
 {
     if (grdEventi.SelectedRows.Count == 1)
     {
         if (grdEventi.Columns.Contains("Numero") && grdEventi.SelectedRows[0].Cells["Numero"].Value != null)
         {
             long codEvento = long.Parse(grdEventi.SelectedRows[0].Cells["Numero"].Value.ToString());
             AggiungiElementoAEvento newForm = new AggiungiElementoAEvento(codEvento);
             newForm.ShowDialog();
             this.loadSubGrids();
         }
     }
 }