Exemple #1
0
        private void AddPlayerEvent(object sender, EventArgs e)
        {
            NewPlayer newPlayerDialog = new NewPlayer
            {
                Text = "Hráči"
            };

            newPlayerDialog.ShowDialog();

            hraci.Pridej(newPlayerDialog.GetHrac());

            ListAktualization();
        }
Exemple #2
0
        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();
        }