void OnFalse() { game.OnFalse(); RaiseAllPropertiesChanged(); NextSelected.ChangeCanExecute(); }
async void OnNext() { if (game.NextQuestion() == true) { NextSelected.ChangeCanExecute(); RaiseAllPropertiesChanged(); } }
private void OnNext() { bool result = game.NextQuestion(); if (result) { NextSelected.ChangeCanExecute(); RaiseAllPropertiesChanged(); } }
void OnPrevious() { App.ButtonPlayer?.Play(); if (game.PreviousQuestion()) { NextSelected.ChangeCanExecute(); BackSelected.ChangeCanExecute(); RaiseAllPropertiesChanged(); } }
private async void OnNext() { bool result = game.NextQuestion(); if (result) { NextSelected.ChangeCanExecute(); RaiseAllPropertiesChanged(); } else { NavigationService navigationService = DependencyService.Get <NavigationService>(); await navigationService.GotoPageAsync(AppPage.ReviewPage); } }
async void OnNext() { if (game.NextQuestion() == true) { NextSelected.ChangeCanExecute(); RaiseAllPropertiesChanged(); } else { var nav = DependencyService.Get <NavigationService>(); if (nav != null) { await nav.GotoPageAsync(AppPage.ReviewPage); } } }
void OnAnswer(int index) { App.ButtonPlayer?.Play(); game.OnAnswer(index); if (game.GameMode == GameMode.AdvancedPractice || game.GameMode == GameMode.BasicPractice) { OnNext(); return; } RaiseAllPropertiesChanged(); NextSelected.ChangeCanExecute(); }
async void OnNext() { App.ButtonPlayer?.Play(); if (game.NextQuestion() == true) { NextSelected.ChangeCanExecute(); BackSelected.ChangeCanExecute(); RaiseAllPropertiesChanged(); } else { isTimerRunning = false; var nav = DependencyService.Get <NavigationService>(); if (nav != null) { await nav.GotoPageAsync(AppPage.ReviewPage); } } }
private void OnTrue() { game.OnTrue(); RaiseAllPropertiesChanged(); NextSelected.ChangeCanExecute(); }