/// <summary> /// Adds provided league names to league selector /// </summary> public void UpdateLeagues() { Log("Updating league list..."); var leagues = _leagueManager.GetLeagueList(); if (leagues == null) { Log("Unable to update leagues"); return; } Application.Current.Dispatcher.Invoke(() => { foreach (var league in leagues) { ComboBox_League.Items.Add(league); } ComboBox_League.Items.Add(_config.ManualLeagueDisplay); ComboBox_League.SelectedIndex = 0; Button_Download.IsEnabled = true; Log("League list updated"); }); }