private void AddPlayerEvent(object sender, EventArgs e) { NewPlayer newPlayerDialog = new NewPlayer { Text = "Hráči" }; newPlayerDialog.ShowDialog(); hraci.Pridej(newPlayerDialog.GetHrac()); ListAktualization(); }
private void EditClubEvent(object sender, EventArgs e) { int index = listView1.FocusedItem.Index; bool edit = true; NewPlayer editPlayer = new NewPlayer(hraci, edit, index) { Text = "Hráči" }; editPlayer.ShowDialog(); ListAktualization(); }