Example #1
0
        private async Task ExecuteGetOrdersCommand()
        {
            if (IsBusy)
            {
                return;
            }

            IsBusy = true;
            GetOrderListCommand.ChangeCanExecute();
            var showAlert = false;

            try
            {
                OrderDetail.Clear();
                GetOrderDetailsList();
            }
            catch (Exception ex)
            {
                showAlert = true;
                //Xamarin.Insights.Report(ex);
            }
            finally
            {
                IsBusy = false;
                GetOrderListCommand.ChangeCanExecute();
            }

            if (showAlert)
            {
                await page.DisplayAlert("Uh Oh :(", "Unable to gather stores.", "OK");
            }
        }