Esempio n. 1
0
        public async Task ExecuteGetFeedbackCommand()
        {
            if (IsBusy)
            {
                return;
            }

            IsBusy = true;

            try{
                Feedbacks.Clear();

                var feedbacks = await dataStore.GetFeedbackAsync();

                foreach (var feedback in feedbacks)
                {
                    Feedbacks.Add(feedback);
                }

                Sort();
            }catch (Exception ex) {
                Xamarin.Insights.Report(ex);
                page.DisplayAlert("Uh oh :(", "Unable to get feedback, pull to refresh when online", "OK");
            }
            finally {
                IsBusy = false;
            }
        }