Ejemplo n.º 1
0
        public void AddPlayersStats(string optionName, string playerSubcatName, Team team,
                                    Dictionary <Player, int> playersCount)
        {
            Dictionary <string, List <PlayersStats> > playersStats;

            if (team == Team.LOCAL)
            {
                playersStats = localPlayersStats;
            }
            else
            {
                playersStats = visitorPlayersStats;
            }

            PlayersStats stats = new PlayersStats(playerSubcatName, playersCount);

            if (playersStats.ContainsKey(optionName))
            {
                playersStats[optionName].Add(stats);
            }
            else
            {
                List <PlayersStats> list = new List <PlayersStats>();
                list.Add(stats);
                playersStats.Add(optionName, list);
            }
        }
Ejemplo n.º 2
0
        public void AddPlayersStats(string optionName, string playerSubcatName, Team team,
			Dictionary<Player, int> playersCount)
        {
            Dictionary<string, List<PlayersStats>> playersStats;

            if (team == Team.LOCAL)
                playersStats = localPlayersStats;
            else
                playersStats = visitorPlayersStats;

            PlayersStats stats = new PlayersStats(playerSubcatName, playersCount);
            if (playersStats.ContainsKey(optionName)) {
                playersStats[optionName].Add(stats);
            } else{
                List<PlayersStats> list = new List<PlayersStats>();
                list.Add(stats);
                playersStats.Add(optionName, list);
            }
        }