Example #1
0
        public GameViewModel(Grid mainGrid, Grid leftGrid, Grid rightGrid, Grid topGrid, Grid botGrid)
        {
            GameModel      = new GameModel();
            _pixelGridView = new MonochromeGridView(mainGrid);
            BuilHintGrids(leftGrid, rightGrid, topGrid, botGrid);

            BuildGameFromImageCommand = new BuildGameFromImageCommand(GameModel, this);
            BuildGameRandomCommand    = new BuildGameRandomCommand(GameModel, this);
            CrosswordRevealCommand    = new CrosswordRevealedCommand(GameModel);
            InteractWithCellCommand   = new InteractWithCellCommand(GameModel, mainGrid);
            LoadGameCommand           = new LoadGameCommand(GameModel);
            SaveGameCommand           = new SaveGameCommand(GameModel);
            SaveScetchCommand         = new SaveScetchCommand(GameModel);
        }
Example #2
0
 private void Construct(CommandBus commandBus)
 {
     _commandBus      = commandBus;
     _loadGameCommand = new LoadGameCommand();
 }