public void GoBackToGame(object sender)
        {
            GameStatistics stats = new GameStatistics();

            stats.potsSuccessPlayer1 = _gameStatistics.potsSuccessPlayer1;
            stats.totalTriesPlayer1  = _gameStatistics.totalTriesPlayer1;
            stats.potsSuccessPlayer2 = _gameStatistics.potsSuccessPlayer2;
            stats.totalTriesPlayer2  = _gameStatistics.totalTriesPlayer2;
            stats.longSuccess1       = _gameStatistics.longSuccess1;
            stats.longTotal1         = _gameStatistics.longTotal1;
            stats.longSuccess2       = _gameStatistics.longSuccess2;
            stats.longTotal2         = _gameStatistics.longTotal2;
            stats.restSuccess1       = _gameStatistics.restSuccess1;
            stats.restTotal1         = _gameStatistics.restTotal1;
            stats.restSuccess2       = _gameStatistics.restSuccess2;
            stats.restTotal2         = _gameStatistics.restTotal2;
            stats.player1total       = _gameStatistics.player1total;
            stats.player1break       = _gameStatistics.player1break;
            stats.player2total       = _gameStatistics.player2total;
            stats.player2break       = _gameStatistics.player2break;

            var playGamePage = new PlayGamePage(stats);

            NavigationPage.SetHasNavigationBar(playGamePage, false);

            _navigation.PushAsync(playGamePage);
        }
示例#2
0
 private async Task PlayGame(string gameId)
 {
     var playGamePage = new PlayGamePage(gameId);
     await Navigation.PushAsync(playGamePage).ConfigureAwait(true);
 }