示例#1
0
 public async Task PlayAgain()
 {
     User.Input = 0;
     HTTPWebRequest.Trivias.Clear();
     //await HTTPWebRequest.GetQuestions(1);
     HTTPWebRequest.GetTrivia(1);
     await _navigationService.Restart();
 }
        private void fetchQuestions()
        {
            if (Number != 1)
            {
                HTTPWebRequest.GetTrivia(Number - 1);
                foreach (var t in HTTPWebRequest.Trivias)
                {
                    stack.Push(t);
                }

                DisplayQuestion();
            }
        }
 protected override void OnStart()
 {
     // Handle when your app starts
     HTTPWebRequest.GetTrivia(1);
 }