void CrunchCore_OnHighScoresReturned(object sender, CrunchEventArgs.HighScoresArgs e) { // test(); Dispatcher.BeginInvoke(() => { //this.highScoresListBox.Visibility = System.Windows.Visibility.Collapsed; //this.highScoresListBox.Visibility = System.Windows.Visibility.Visible; //ItemCollection itemCol; List<MatchResult> results = new List<MatchResult>(); foreach (MatchResult result in Globals.MatchResults) results.Add(result); this.highScoresListBox.ItemsSource = results; test(); }); //this.highScoresListBox.ItemsSource = Globals.MatchResults; //this.matchResults = e.matchResults; }
void CrunchCore_OnHighScoresReturned(object sender, CrunchEventArgs.HighScoresArgs e) { this.matchResults = e.matchResults; }