Ejemplo n.º 1
0
        async Task ExecuteLoadItemsCommand()
        {
            IsBusy = true;

            try
            {
                var reminders = await App.BraindumpRestClient
                                .GetRemindersAsync(DateTimeOffset.Now + TimeSpan.FromDays(14));

                Reminders.ReplaceWith(reminders);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
                Alerter.Alert(ex.Message);
            }
            finally
            {
                IsBusy = false;
            }
        }