private void cboTeam_SelectionChanged(object sender, SelectionChangedEventArgs e) { var comboBox = sender as ComboBox; var choiceItem = comboBox.SelectedItem as string; if (choiceItem != null) { TeamInfo.Clear(); PrintTeamInfoTo(choiceItem, TeamInfo); } }
private void BeforeLoadLeague() { BusyIndicator.Visibility = Visibility.Visible; cboTeam.IsEnabled = false; TeamInfo.Clear(); }