コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: NFLGame.cs プロジェクト: Quarterback16/GerardGui
        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;
        }
コード例 #3
0
ファイル: NFLGame.cs プロジェクト: Quarterback16/GerardGui
 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);
 }
コード例 #4
0
ファイル: NFLGame.cs プロジェクト: Quarterback16/GerardGui
 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);
 }
コード例 #5
0
ファイル: NFLTeam.cs プロジェクト: Quarterback16/GerardGui
 public Lineup Lineup(string season, string week)
 {
     var lineup = new Lineup(TeamCode, season, week);
      lineup.DumpLineup();
      return lineup;
 }
コード例 #6
0
ファイル: NFLTeam.cs プロジェクト: Quarterback16/GerardGui
        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;
        }
コード例 #7
0
ファイル: NFLTeam.cs プロジェクト: Quarterback16/GerardGui
 public void DumpLineup(string season, string week)
 {
     var lineup = new Lineup(TeamCode, season, week);
      lineup.DumpLineup();
 }