public void GotPlayerStats(PlayerLifetimeStats stats)
 {
     Summaries = new List<PlayerStatSummary>();
     Dispatcher.BeginInvoke(DispatcherPriority.Input, new ThreadStart(() =>
     {
         StatsComboBox.Items.Clear();
         StatsListView.Items.Clear();
         foreach (PlayerStatSummary x in stats.PlayerStatSummaries.PlayerStatSummarySet)
         {
             if (x.AggregatedStats.Stats.Count > 0)
             {
                 Summaries.Add(x);
                 string SummaryString = x.PlayerStatSummaryTypeString;
                 SummaryString = string.Concat(SummaryString.Select(e => Char.IsUpper(e) ? " " + e : e.ToString())).TrimStart(' ');
                 SummaryString = SummaryString.Replace("Odin", "Dominion");
                 SummaryString = SummaryString.Replace("x", "v");
                 StatsComboBox.Items.Add(SummaryString);
             }
         }
     }));
 }
 public void GotPlayerStats(PlayerLifetimeStats stats)
 {
     summaries = new List<PlayerStatSummary>();
     Dispatcher.BeginInvoke(DispatcherPriority.Input, new ThreadStart(() =>
     {
         StatsComboBox.Items.Clear();
         StatsListView.Items.Clear();
         try
         {
             foreach (
                 var x in
                     stats.PlayerStatSummaries.PlayerStatSummarySet.Where(x => x.AggregatedStats.Stats.Count > 0)
                 )
             {
                 summaries.Add(x);
                 var summaryString = x.PlayerStatSummaryTypeString;
                 summaryString =
                     string.Concat(
                         summaryString.Select(
                             e => Char.IsUpper(e) ? " " + e : e.ToString(CultureInfo.InvariantCulture)))
                         .TrimStart(' ');
                 summaryString = summaryString.Replace("Odin", "Dominion");
                 summaryString = summaryString.Replace("x", "v");
                 StatsComboBox.Items.Add(summaryString);
             }
         }
         catch
         {
             Client.Log("Error when loading player stats.");
         }
         if (StatsComboBox.Items.Contains("Ranked Solo5v5"))
             StatsComboBox.SelectedItem = "Ranked Solo5v5";
         else
             StatsComboBox.SelectedItem = "Unranked";
     }));
 }