public PlayByPlayEntry(DataRow row, BoxScoreEntry bse, Dictionary <int, TeamStats> tst, Dictionary <int, PlayerStats> pst)
            : this()
        {
            ID            = ParseCell.GetUInt32(row, "ID");
            GameID        = ParseCell.GetInt32(row, "GameID");
            Quarter       = ParseCell.GetInt32(row, "Quarter");
            TimeLeft      = ParseCell.GetDouble(row, "TimeLeft");
            ShotClockLeft = ParseCell.GetDouble(row, "ShotClockLeft");
            Player1ID     = ParseCell.GetInt32(row, "P1ID");
            Player2ID     = ParseCell.GetInt32(row, "P2ID");

            T1PTS = ParseCell.GetInt32(row, "T1CurPTS");
            T2PTS = ParseCell.GetInt32(row, "T2CurPTS");

            Team1PlayerIDs.Clear();
            Team1PlayerIDs.Add(ParseCell.GetInt32(row, "T1P1ID"));
            Team1PlayerIDs.Add(ParseCell.GetInt32(row, "T1P2ID"));
            Team1PlayerIDs.Add(ParseCell.GetInt32(row, "T1P3ID"));
            Team1PlayerIDs.Add(ParseCell.GetInt32(row, "T1P4ID"));
            Team1PlayerIDs.Add(ParseCell.GetInt32(row, "T1P5ID"));

            Team2PlayerIDs.Clear();
            Team2PlayerIDs.Add(ParseCell.GetInt32(row, "T2P1ID"));
            Team2PlayerIDs.Add(ParseCell.GetInt32(row, "T2P2ID"));
            Team2PlayerIDs.Add(ParseCell.GetInt32(row, "T2P3ID"));
            Team2PlayerIDs.Add(ParseCell.GetInt32(row, "T2P4ID"));
            Team2PlayerIDs.Add(ParseCell.GetInt32(row, "T2P5ID"));

            EventType    = ParseCell.GetInt32(row, "EventType");
            EventDesc    = ParseCell.GetString(row, "EventDesc");
            Location     = ParseCell.GetInt32(row, "Location");
            LocationDesc = ParseCell.GetString(row, "LocationDesc");

            DisplayTeam    = Team1PlayerIDs.Contains(Player1ID) ? tst[bse.BS.Team1ID].DisplayName : tst[bse.BS.Team2ID].DisplayName;
            DisplayPlayer1 = pst[Player1ID].FullName;
            DisplayPlayer2 = pst[Player2ID].FullName;

            if (EventType == ShotAttemptEventType)
            {
                ShotEntry = new ShotEntry(row);
            }
        }
        public PlayByPlayEntry(DataRow row, BoxScoreEntry bse, Dictionary<int, TeamStats> tst, Dictionary<int, PlayerStats> pst)
            : this()
        {
            ID = ParseCell.GetUInt32(row, "ID");
            GameID = ParseCell.GetInt32(row, "GameID");
            Quarter = ParseCell.GetInt32(row, "Quarter");
            TimeLeft = ParseCell.GetDouble(row, "TimeLeft");
            ShotClockLeft = ParseCell.GetDouble(row, "ShotClockLeft");
            Player1ID = ParseCell.GetInt32(row, "P1ID");
            Player2ID = ParseCell.GetInt32(row, "P2ID");

            T1PTS = ParseCell.GetInt32(row, "T1CurPTS");
            T2PTS = ParseCell.GetInt32(row, "T2CurPTS");

            Team1PlayerIDs.Clear();
            Team1PlayerIDs.Add(ParseCell.GetInt32(row, "T1P1ID"));
            Team1PlayerIDs.Add(ParseCell.GetInt32(row, "T1P2ID"));
            Team1PlayerIDs.Add(ParseCell.GetInt32(row, "T1P3ID"));
            Team1PlayerIDs.Add(ParseCell.GetInt32(row, "T1P4ID"));
            Team1PlayerIDs.Add(ParseCell.GetInt32(row, "T1P5ID"));

            Team2PlayerIDs.Clear();
            Team2PlayerIDs.Add(ParseCell.GetInt32(row, "T2P1ID"));
            Team2PlayerIDs.Add(ParseCell.GetInt32(row, "T2P2ID"));
            Team2PlayerIDs.Add(ParseCell.GetInt32(row, "T2P3ID"));
            Team2PlayerIDs.Add(ParseCell.GetInt32(row, "T2P4ID"));
            Team2PlayerIDs.Add(ParseCell.GetInt32(row, "T2P5ID"));

            EventType = ParseCell.GetInt32(row, "EventType");
            EventDesc = ParseCell.GetString(row, "EventDesc");
            Location = ParseCell.GetInt32(row, "Location");
            LocationDesc = ParseCell.GetString(row, "LocationDesc");

            DisplayTeam = Team1PlayerIDs.Contains(Player1ID) ? tst[bse.BS.Team1ID].DisplayName : tst[bse.BS.Team2ID].DisplayName;
            DisplayPlayer1 = pst[Player1ID].FullName;
            DisplayPlayer2 = pst[Player2ID].FullName;

            if (EventType == ShotAttemptEventType)
            {
                ShotEntry = new ShotEntry(row);
            }
        }
 public PlayByPlayEntry()
 {
     Team1PlayerIDs = new List <int>(5);
     Team2PlayerIDs = new List <int>(5);
     ShotEntry      = new ShotEntry();
 }
 public PlayByPlayEntry()
 {
     Team1PlayerIDs = new List<int>(5);
     Team2PlayerIDs = new List<int>(5);
     ShotEntry = new ShotEntry();
 }