Beispiel #1
0
        protected override async void OnAppearing()
        {
            this.model = await httpService.PegarPerguntaNaoRespondida(_id);

            if (this.model != null)
            {
                Navigation.InsertPageBefore(new QuizPage(this.model, _id), this);
                await Navigation.PopAsync();
            }
            else
            {
                Text.Text         = "Não existe mais perguntas disponíveis!";
                Loading.IsVisible = false;
                NavigationPage.SetHasNavigationBar(this, true);
                NavigationPage.SetHasBackButton(this, true);
            }
        }