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