Esempio n. 1
0
        async Task ExecuteLoadRecentCommand()
        {
            IsBusy = true;

            try
            {
                RecentCategories.Clear();
                var recent = await WordData.GetRecentAsync(true);

                foreach (Vocabulary.Model.Category item in recent)
                {
                    RecentCategories.Add(MapCategory(item));
                }
                NoRecentFound = RecentCategories.Count == 0;
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
            finally
            {
                IsBusy = false;
            }
        }