Пример #1
0
        async Task ExecuteLoadItemsCommand()
        {
            IsBusy = true;

            try
            {
                Categories.Clear();
                var recent = await WordData.GetItemsAsync();

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