/*********************************************OBSŁUGA PRZYCISKÓW*****************************************************************/
        private void editTeamNameButton_Click(object sender, RoutedEventArgs e)
        {
            AddEditTeam addEditTeam = new AddEditTeam(nameTeamLabel.Content.ToString(), index, true);

            addEditTeam.ShowDialog();
            nameTeamLabel.Content = team.TeamName;
        }
Exemple #2
0
        private void editNameTeamButton_Click(object sender, RoutedEventArgs e)
        {
            AddEditTeam addEditTeam = new AddEditTeam(nameTeamLabel.Content.ToString(), lastSelectedIndex, true);

            addEditTeam.ShowDialog();
            nameTeamLabel.Content = TeamList.ListOfTeam.ElementAt(lastSelectedIndex).TeamName;
            updateListBox(lastSelectedIndex);
        }
Exemple #3
0
        private void addTeamMenuItem_Click(object sender, RoutedEventArgs e)
        {
            AddEditTeam addEditTeam = new AddEditTeam("", -1, false);

            addEditTeam.ShowDialog();
            teamListBox.SelectedIndex = -1;
            updateListBox(-1);
            updateGeneralInformation();
        }