private void ResultsList_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var selectedShow = ResultsList.SelectedItem as string; foreach (KeyValuePair <int, string> item in output) { if (item.Value == selectedShow) { id = item.Key; } } seasonDic = ShowHelper.ShowSeason(id); ShowInfo info = new ShowInfo(id); foreach (KeyValuePair <int, string> item in seasonDic) { seasons.Add(item.Value); } SeriesInfo.Text = info.ToString(); names.Clear(); ResultsList.Items.Refresh(); SeasonList.Items.Refresh(); }