private async Task OnCancelExecuteAsync() { if (await _messageService.ShowAsync(_languageService.GetString("Wizard_AreYouSureYouWantToCancelWizard"), button: MessageButton.YesNo) == MessageResult.No) { return; } if (await CancelAsync()) { await Wizard.CancelAsync(); await CloseViewModelAsync(false); } }
private async Task <bool> CancelWizardAsync() { using (new DisposableToken <WizardViewModel>(this, x => x.Instance._isCanceling = true, x => x.Instance._isCanceling = false)) { if (await _messageService.ShowAsync(_languageService.GetString("Wizard_AreYouSureYouWantToCancelWizard"), button: MessageButton.YesNo) == MessageResult.No) { return(false); } if (!await CancelAsync()) { return(false); } await Wizard.CancelAsync(); return(true); } }
private async Task OnCancelViaCodeExecuteAsync() { await Wizard.CancelAsync(); }