public void TestLineupLoad() { var LineupDs = Utility.TflWs.GetLineup( "NO", "2015", 8 ); var lineup = new Lineup(LineupDs); Utility.Announce(string.Format("NFLGame.LoadLineupPlayers {0} players in lineup", lineup.PlayerList.Count ) ); lineup.DumpLineup(); Assert.IsTrue(lineup.PlayerList.Count > 0); }
public List<NFLPlayer> LoadLineupPlayers(string teamCode) { Announce( string.Format("NFLGame.LoadLineupPlayers for {0}:{1}", teamCode, GameCodeOut() ) ); var LineupDs = Utility.TflWs.GetLineup(teamCode, Season, WeekNo); var lineup = new Lineup(LineupDs); Announce(string.Format("NFLGame.LoadLineupPlayers {0} players in lineup", lineup.PlayerList.Count ) ); return lineup.PlayerList; }
public void LoadHomeLineup() { HomeLineup = new Lineup( Utility.TflWs.GetLineup( HomeTeam, Season, WeekNo) ); HomeQb1 = HomeLineup.GetPlayerAt("QB"); HomeQb1.CurrentGameMetrics = PgmDao.GetPlayerWeek(GameKey(), HomeQb1.PlayerCode); HomeRb1 = HomeLineup.GetPlayerAt("RB"); HomeRb1.CurrentGameMetrics = PgmDao.GetPlayerWeek(GameKey(), HomeRb1.PlayerCode); }
public void LoadAwayLineup() { AwayLineup = new Lineup(Utility.TflWs.GetLineup(AwayTeam, Season, WeekNo)); AwayQb1 = AwayLineup.GetPlayerAt("QB"); AwayQb1.CurrentGameMetrics = PgmDao.GetPlayerWeek(GameCode, AwayQb1.PlayerCode); AwayRb1 = AwayLineup.GetPlayerAt("RB"); AwayRb1.CurrentGameMetrics = PgmDao.GetPlayerWeek(GameCode, AwayRb1.PlayerCode); }
public Lineup Lineup(string season, string week) { var lineup = new Lineup(TeamCode, season, week); lineup.DumpLineup(); return lineup; }
public string KeyPlayer(string pos, string seasonIn, string week) { var star = ""; LineupDs = Utility.TflWs.GetLineup(TeamCode, seasonIn, Int32.Parse(week)); var dt = LineupDs.Tables["lineup"]; var lu = new Lineup(LineupDs); var player = lu.GetPlayerAt(pos); if (player != null) star = player.PlayerNameShort; return star; }
public void DumpLineup(string season, string week) { var lineup = new Lineup(TeamCode, season, week); lineup.DumpLineup(); }