Exemplo n.º 1
0
        public void SetTotal(BatchMatchEntity batchMatchEntity)
        {
            HomeScore  = _match.HomeScore;
            AwayScore  = _match.AwayScore;
            TotalRound = _match.Status.TotalRound;
            HomeManager.SetTotal(batchMatchEntity.HomeManager);
            AwayManager.SetTotal(batchMatchEntity.AwayManager);
            int endRound = 0;

            for (int i = 0; i < _match.Report.BallResults.Count; i++)
            {
                var ballResult = _match.Report.BallResults[i];
                if (ballResult.AsRound > endRound)
                {
                    if (ballResult.StateData.State != 0 || ballResult.ClassId > 1)
                    {
                        var entity = new StatisticsBallEntity(_match, i, ballResult);
                        if (entity.EndRound > 0)
                        {
                            endRound = entity.EndRound;
                        }
                        StatisticsBallResults.Add(entity);
                    }
                }
            }
        }
Exemplo n.º 2
0
        public void CreateCallback(Guid matchId, int count, long cost, MatchReport matchResult)
        {
            var entity = new BatchMatchEntity(matchId, count, cost, matchResult);

            _testMatchList.Add(entity);
            EmulatorHelper.SaveMatchToFile(matchResult, matchId, _folderName);
            EmulatorHelper.LoadTestProcess(_folderName, matchId);
            //LogHelper.Insert("matchId:"+matchId,LogType.Info);
            ProgressBar1.Value = count;
            lblProcess.Content = string.Format("{0}/{1}", count, _matchTimes);
        }
Exemplo n.º 3
0
        public void SetTotal()
        {
            BatchMatchEntity batchMatchEntity = new BatchMatchEntity(_match.Input.MatchId, 0, 0, _match.Report);

            SetTotal(batchMatchEntity);
        }
Exemplo n.º 4
0
 void ShowStatisticsData(BatchMatchEntity match)
 {
     ShowStatisticsData(match.MatchId, match.Id, match.HomeManager, match.AwayManager);
 }