Пример #1
0
 public ChessTableViewModel(IEventAggregator eg, IGameTable gt)
 {
     MoveAllowed      = true;
     _gameTable       = gt;
     _eventAggregator = eg;
     _gameTable.StartNewGame();
     InitializeTableSquares();
     InitializeEventHandlers();
     RedrawTable();
 }
Пример #2
0
 private void NewGame()
 {
     _gameTable.StartNewGame();
 }