/*********************************************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; }
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); }
private void addTeamMenuItem_Click(object sender, RoutedEventArgs e) { AddEditTeam addEditTeam = new AddEditTeam("", -1, false); addEditTeam.ShowDialog(); teamListBox.SelectedIndex = -1; updateListBox(-1); updateGeneralInformation(); }