Example #1
0
        async Task ItemClickCommandExecuteAsync(Place place)
        {
            if (IsBusy)
            {
                return;
            }

            Exception error = null;

            try
            {
                IsBusy = true;
                var placePage = new PlacePage();
                await placePage.ViewModel.Initialize(place);

                await Navigation.PushAsync(placePage);
            }
            catch (Exception ex)
            {
                Debug.WriteLine("Error: " + ex);
                error = ex;
            }
            finally
            {
                IsBusy = false;
            }

            if (error != null)
            {
                await ShowAlertAsync("Error!", error.Message, "OK");
            }
        }
Example #2
0
        public void ClickingHotPlaceNavigatesToDetails()
        {
            Page.SelectHotPlace("Ulun Danu Beratan Temple");

            var placePage = new PlacePage(App);

            placePage.WaitForLoad();
        }
Example #3
0
        public App()
        {
            InitializeComponent();

            MainPage = new PlacePage();
        }