Esempio n. 1
0
        public async Task <int> OnGetPlayerCribScore(int actualScore = int.MaxValue)
        {
            string message = "Use the up and down arrows to specify your score. Then click the check.  There are many options in Settings on how this works.";

            await ShowHintWindow(true, false, message);

            int playerScore = await PlayerSetScoreControl.ShowAndWaitForContinue(actualScore);

            await PlayerSetScoreControl.Hide();

            return(playerScore);
        }
Esempio n. 2
0
        public void InitializeAsync(Deck deck, ClientStateMachine stateMachine)
        {
            this.Deck    = deck;
            StateMachine = stateMachine;
#pragma warning disable 1998, 4014
            AddCardsToGrid();
#pragma warning restore 1998, 4014
            if (StateMachine != null)
            {
                ViewCallback.SetUIState(stateMachine.UiState);
            }

            PlayerSetScoreControl.HideAsync();
        }
Esempio n. 3
0
        public void Reset()
        {
            if (PlayerScore != null)
            {
                PlayerScore.Reset();
                ComputerScore.Reset();
            }

            Board.Reset();
            PlayerSetScoreControl.HideAsync();
            HintWindow.ShowAsync(false, false, "Swipe Up to and hit New Game!");

            if (GridDeck.Items.Count > 52)
            {
                Debug.Assert(false, "Too many cards in your deck after reset!");
            }
            HintWindow.ResetScoreHistory();
            ViewCallback.Reset();
        }