private void DumpBreakdown(string teamCode, string positionAbbr)
        {
            var breakdownKey = $"{teamCode}-{positionAbbr}-{Week}";

            TeamBreakdowns.Dump(breakdownKey,
                                $"{RootFolder}\\pts-allowed\\{breakdownKey}.htm");
        }
Exemplo n.º 2
0
        private void DumpBreakdown(
            string teamCode,
            string positionAbbr)
        {
            var fpts         = GetFptsFor(teamCode);
            var breakdownKey = $"{teamCode}-{positionAbbr}-{Week}";

            TeamBreakdowns.Dump(
                breakdownKey,
                $"{RootFolder}\\pts-allowed\\{breakdownKey}.htm",
                fpts.AverageFor(positionAbbr));
        }
        private void AddBreakdownLine(
            NflTeam team, string theWeek, NFLPlayer p, decimal plyrPts, string abbr)
        {
            if (plyrPts == 0)
            {
                return;
            }

            var strPts = string.Format("{0:0.0}", plyrPts);

            strPts = strPts.PadLeft(5);
            strPts = strPts.Substring(strPts.Length - 5);
            TeamBreakdowns.AddLine(
                breakdownKey: $"{ team.TeamCode}-{abbr}-{Week}",
                line: $@"Wk:{
				  theWeek
				  } {p.PlayerName,-25} Pts : {strPts}"
                );
        }