コード例 #1
0
ファイル: Statistic.xaml.cs プロジェクト: VitTrane/Sea-Battle
        private void GetLastGames(object sender, ResponseEventArgs e)
        {
            GetLastGamesResponse response = e.Response as GetLastGamesResponse;

            if (response != null)
            {
                if (response.Games != null)
                {
                    var lastGames = response.Games;
                    foreach (var game in lastGames)
                    {
                        _lastGames.Add(game);
                    }
                }
            }
        }
コード例 #2
0
 public void GetStatisticLastGamesCallBack(GetLastGamesResponse response)
 {
     syncContext.Post(new SendOrPostCallback(OnBroadcast <GetLastGamesResponse>), response);
 }