public TableModel(databaseCache cache, WinRatioProvider wrProv, bool useAllPlayersCards) { this.tableId = cache.TableId; this.numPlayers = cache.NumSeats; this.wrProv = wrProv; //playersOld = new Dictionary<long, PlayerModel>(numPlayers); playersNew = new Dictionary <long, PlayerModelFixed>(numPlayers); var satDownPositions = cache.getSatDownPositions(); for (byte i = 0; i < numPlayers; i++) { if (satDownPositions.Contains(i)) { //playersOld.Add(cache.getPlayerId(i), new PlayerModel(tableId, cache.getCurrentHandId(), cache.getPlayerId(i), wrProv)); playersNew.Add(cache.getPlayerId(i), new PlayerModelFixed(tableId, cache.BigBlind, cache.getCurrentHandId(), cache.getPlayerId(i), wrProv)); } } }