private async Task SetupBoard(string boardId, string boardLevel, int userId )
        {
            var optionsFactory = new OptionsFactory();
            var categoryFactory = optionsFactory.SelectedCategory(boardId);
            var setCategoryDTO = new SetCategoryDTO();

            switch (boardLevel)
            {
                case LevelConstants.EasyLevel:
                    setCategoryDTO = categoryFactory.BuildEasyBoard();
                    break;

                case LevelConstants.MediumLevel:
                    setCategoryDTO = categoryFactory.BuildMediumBoard();
                    break;

                case LevelConstants.HardLevel:
                    setCategoryDTO = categoryFactory.BuildHardBoard();
                    break;
            }

            ((GameBoardViewModel)DataContext).Init(Frame, setCategoryDTO, userId);

        }
Beispiel #2
0
        private async Task SetupLiveTiles()
        {
            var storageManager = new StorageManager();
            var optionsFactory = new OptionsFactory();

            var pinManager = new PinManager(storageManager, optionsFactory);
            pinManager.UpdateMainLiveTile();
            pinManager.UpdateSecondaryTiles();
            // async (board, level) => await storageManager.LeaderBoardResultsAsync(board, level)
        }