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 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 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; }