Exemplo n.º 1
0
 private void btnPersonaggio_Click(object sender, EventArgs e)
 {
     if (grdGiocatori.SelectedRows.Count > 0)
     {
         long numSw = (long)grdGiocatori.SelectedRows[0].Cells["NumeroSW"].Value;
         InsertPersonaggio newForm = new InsertPersonaggio(numSw);
         newForm.ShowDialog();
         LoadCharactersGrid();
     }
 }
Exemplo n.º 2
0
 private void btnEditPers_Click(object sender, EventArgs e)
 {
     if (grdPersonaggi.SelectedRows.Count == 1)
     {
         long numeroSw = (long)grdPersonaggi.SelectedRows[0].Cells["NumeroSW_Character"].Value;
         long numeroPg = (long)grdPersonaggi.SelectedRows[0].Cells["NumeroPG"].Value;
         InsertPersonaggio newForm = new InsertPersonaggio(numeroSw, numeroPg);
         newForm.ShowDialog();
         LoadCharactersGrid();
     }
 }
Exemplo n.º 3
0
 private void btnEditPers_Click(object sender, EventArgs e)
 {
     if (grdPersonaggi.SelectedRows.Count == 1)
     {
         long numeroSw             = (long)grdPersonaggi.SelectedRows[0].Cells["NumeroSW_Character"].Value;
         long numeroPg             = (long)grdPersonaggi.SelectedRows[0].Cells["NumeroPG"].Value;
         InsertPersonaggio newForm = new InsertPersonaggio(numeroSw, numeroPg);
         newForm.ShowDialog();
         LoadCharactersGrid();
     }
 }
Exemplo n.º 4
0
 private void btnPersonaggio_Click(object sender, EventArgs e)
 {
     if (grdGiocatori.SelectedRows.Count > 0)
     {
         long numSw = (long)grdGiocatori.SelectedRows[0].Cells["NumeroSW"].Value;
         InsertPersonaggio newForm = new InsertPersonaggio(numSw);
         newForm.ShowDialog();
         LoadCharactersGrid();
     }
 }