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);
            }
        }
Пример #2
0
        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);
            }
        }
Пример #3
0
 private async Task OnCancelViaCodeExecuteAsync()
 {
     await Wizard.CancelAsync();
 }