コード例 #1
0
        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;
        }
コード例 #2
0
 void CrunchCore_OnHighScoresReturned(object sender, CrunchEventArgs.HighScoresArgs e)
 {
     this.matchResults = e.matchResults;
 }