Ejemplo n.º 1
0
        private void AddLose(string teamTitle)
        {
            if (!_table.ContainsKey(teamTitle))
            {
                _table[teamTitle] = new LeagueTableLine();
            }

            _table[teamTitle].Games++;
            _table[teamTitle].Loses++;
            _table[teamTitle].Points += _pointSystem.LoseWeight;
        }
Ejemplo n.º 2
0
        private void AddDraw(string homeTeamTitle, string awayTeamTitle)
        {
            if (!_table.ContainsKey(homeTeamTitle))
            {
                _table[homeTeamTitle] = new LeagueTableLine();
            }
            if (!_table.ContainsKey(awayTeamTitle))
            {
                _table[awayTeamTitle] = new LeagueTableLine();
            }

            _table[homeTeamTitle].Games++;
            _table[homeTeamTitle].Draws++;
            _table[homeTeamTitle].Points += _pointSystem.DrawWeight;

            _table[awayTeamTitle].Games++;
            _table[awayTeamTitle].Draws++;
            _table[awayTeamTitle].Points += _pointSystem.DrawWeight;
        }