async void Answer4B(object sender, System.EventArgs e) { Antwoord4A.IsVisible = false; Antwoord4B.IsVisible = false; Antwoord4C.IsVisible = false; Vraag4.IsVisible = false; Image4.IsVisible = false; Antwoorden = Antwoorden + "4B"; QueryQuiz = QueryQuiz + "AND Exercise = 'gemiddeld' "; if (Antwoorden == "1B2B3A4B") { string targetPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); var dbPath = Path.Combine(targetPath, "DogDBFive.db"); var page = new QuizResultaat(dbPath, (QueryQuiz)); Navigation.InsertPageBefore(page, Navigation.NavigationStack[Navigation.NavigationStack.Count - 1]); await Navigation.PopAsync(); } if (Antwoorden == "1B2B3B4B") { string targetPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); var dbPath = Path.Combine(targetPath, "DogDBFive.db"); var page = new QuizResultaat(dbPath, (QueryQuiz)); Navigation.InsertPageBefore(page, Navigation.NavigationStack[Navigation.NavigationStack.Count - 1]); await Navigation.PopAsync(); } Antwoord5A.IsVisible = true; Antwoord5B.IsVisible = true; Antwoord5C.IsVisible = true; Image5.IsVisible = true; Vraag5.IsVisible = true; if (Antwoorden == "1C2B3A4B") { Antwoord5A.IsVisible = false; } if (Antwoorden == "1A2B3A4B") { Antwoord5C.IsVisible = false; } if (Antwoorden == "1C2C3A4B") { Antwoord5C.IsVisible = false; } if (Antwoorden == "1B2A3B4B") { Antwoord5C.IsVisible = false; } }
async void Answer5C(object sender, System.EventArgs e) { Antwoord5A.IsVisible = false; Antwoord5B.IsVisible = false; Antwoord5C.IsVisible = false; Image5.IsVisible = false; Vraag5.IsVisible = false; Antwoorden = Antwoorden + "5C"; QueryQuiz = QueryQuiz + "AND Fur = 'lang' ;"; string targetPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); var dbPath = Path.Combine(targetPath, "DogDBFive.db"); var page = new QuizResultaat(dbPath, (QueryQuiz)); Navigation.InsertPageBefore(page, Navigation.NavigationStack[Navigation.NavigationStack.Count - 1]); await Navigation.PopAsync(); }