public PartyPokerParser(Data.SQLite.DataStore store) { _store = store; _handHistoryDir = GetHandHistoryDirectory(); string partySiteName = "Party Poker"; _site = this.Store.GetPokerSite(partySiteName); if (_site != null) { _siteId = _site.Id; } else { Logger.Error("Poker Site '{0}' not found in database", partySiteName); } _stats.TotalHands = store.GetHandCount(); _stats.TotalPlayers = store.GetPlayerCount(); }