コード例 #1
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);
 }
コード例 #2
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);
 }
コード例 #3
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;
        }