示例#1
0
        public async Task GoBackToMainPageExecute()
        {
            await RunTaskAsync(async() =>
            {
                await VoiceInterface.StopListening();
                await VoiceInterface.SayGoodBye();
                Messenger.Default.Unregister(this);

                NavigationService.NavigateTo(ViewModelLocator.MainPage);
            });
        }
示例#2
0
        // Navigation actions
        private async Task GoBackToMainExecute()
        {
            // Cleans up services and messenger
            await VoiceInterface.StopListening();

            await VoiceInterface.SayGoodBye();

            Messenger.Default.Unregister(this);

            NavigationService.NavigateTo(ViewModelLocator.MainPage);
        }