void RegisterEvents() { _playerStatisticsUpdater.FinishedUpdatingMultiplePlayerStatistics += stats => { _overlayPokerTableStatistics.UpdateWith(stats); _liveStatsPokerTableStatistics.UpdateWith(stats); }; _tableOverlayManager.ShowLiveStatsWindowRequested += () => { _liveStatsWindow.Show(); _liveStatsWindow.Activate(); }; _tableOverlayManager.ShowGameHistoryWindowRequested += () => { _gameHistoryWindow.DataContext = _gameHistory; _gameHistoryWindow.Show(); _gameHistoryWindow.Activate(); }; _tableOverlayManager.TableClosed += () => { ShuttingDown(); _liveStatsWindow.Dispose(); _tableOverlayManager.Dispose(); _gameHistoryWindow.Dispose(); }; }