コード例 #1
0
        /// <summary>
        /// Handles execution of "GoToPlacesPageCommand".
        /// </summary>
        private async void ExecuteGoToPlacesPageAsync()
        {
            var isConsent = _findPlaceService.GetUserConsentAsync();

            if (await isConsent)
            {
                _pageNavigation.NavigateToPlacesPage(new PlacesViewModel());
            }
            else
            {
                _pageNavigation.Close();
            }
        }
コード例 #2
0
 /// <summary>
 /// Handles execution of "CloseApplicationCommand".
 /// </summary>
 private void ExecuteCloseApplication()
 {
     _navigation.Close();
 }