Example #1
0
        private async Task ResumeNewGame(int id)
        {
            var sudoku = await _masterOfSudokuStore.GetMasterOfSudoku(id);

            var game = new MasterOfSudokuViewModel(sudoku);

            if (game.IsGameFinished)
            {
                await _pageService.DisplayAlert("Sorry", "You alweady won this game!", "Ok");

                return;
            }
            await _pageService.PushAsync(new PlayView(game));
        }
Example #2
0
        private async Task ResumeNewGame(int id)
        {
            IsGameCreating = true;
            var sudoku = await _masterOfSudokuStore.GetMasterOfSudoku(id);

            var game = new MasterOfSudokuViewModel(sudoku);

            if (game.IsGameFinished)
            {
                await _pageService.DisplayAlert("Sorry", "You alweady won this game!", "Ok");

                IsGameCreating = false;
                return;
            }
            IsGameCreating = false;
            await _pageService.PushAsync(new PlayView(game));

            //await _pageService.SaveAppProperties("GameRunning", Convert.ToString(id));
        }