Esempio n. 1
0
        private void buttonModify_Click(object sender, EventArgs e)
        {
            List <Player> selectedHumanPlayers = new List <Player>();

            foreach (var item in checkedListBoxHumanPlayers.SelectedItems)
            {
                Player temp = (Player)item;
                selectedHumanPlayers.Add(temp);
            }
            if (selectedHumanPlayers.Count == 1)
            {
                PlayerForm addPlayerForm = new PlayerForm(this, selectedHumanPlayers[0]);
                addPlayerForm.Show();
            }
        }
Esempio n. 2
0
 private void buttonModify_Click(object sender, EventArgs e)
 {
     List<Player> selectedHumanPlayers = new List<Player>();
     foreach (var item in checkedListBoxHumanPlayers.SelectedItems)
     {
         Player temp = (Player)item;
         selectedHumanPlayers.Add(temp);
     }
     if (selectedHumanPlayers.Count == 1)
     {
         PlayerForm addPlayerForm = new PlayerForm(this, selectedHumanPlayers[0]);
         addPlayerForm.Show();
     }
 }
Esempio n. 3
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            PlayerForm addPlayerForm = new PlayerForm(this);

            addPlayerForm.Show();
        }
Esempio n. 4
0
 private void buttonAdd_Click(object sender, EventArgs e)
 {
     PlayerForm addPlayerForm = new PlayerForm(this);
     addPlayerForm.Show();
 }