예제 #1
0
        private async Task FilterAsync()
        {
            if (Brand == null && Type == null)
            {
                return;
            }

            IsBusy = true;

            // Filter catalog products
            MessagingCenter.Send(this, MessageKeys.Filter);
            Products = await _productsService.FilterAsync(Brand.Id, Type.Id);

            IsBusy = false;
        }
예제 #2
0
        private async Task FilterAsync()
        {
            if (System.String.IsNullOrEmpty(ProductFilter))
            {
                return;
            }

            IsBusy = true;

            // Filter catalog products
            MessagingCenter.Send(this, MessageKeys.Filter);
            Products = await _productsService.FilterAsync(ProductFilter);

            IsBusy = false;
        }