Exemplo 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();
            }
        }
Exemplo 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();
     }
 }
Exemplo n.º 3
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            PlayerForm addPlayerForm = new PlayerForm(this);

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