Example #1
0
        async Task ExecuteLoadNominatedProductsCommand()
        {
            IsBusy = true;

            try
            {
                NominatedProducts.Clear();
                var items = await ProductStore.GetItemsAsync(true);

                foreach (var item in items)
                {
                    NominatedProducts.Add(item);
                }
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
            finally
            {
                IsBusy = false;
            }
        }