コード例 #1
0
        /// <summary>
        /// Binds Item.
        /// </summary>
        private void BindItem()
        {
            Func <VariationContent, bool> filterAction = x =>
            {
                var fashionItemContent = x as FashionItemContent;
                if (fashionItemContent == null)
                {
                    return(false);
                }

                return(fashionItemContent.Facet_Size == sizes.SelectedValue && fashionItemContent.Facet_Color == colors.SelectedValue);
            };

            AddToCart.FilterAction = filterAction;

            ProductPromotions.FilterAction = filterAction;
            ProductPromotions.DataBind();

            ProductPriceDetails.FilterAction = filterAction;
            ProductPriceDetails.DataBind();

            ProductWarehouseInfo.FilterAction = filterAction;
            ProductWarehouseInfo.DataBind();

            UpdateFilterAction(filterAction);
        }
コード例 #2
0
        /// <summary>
        /// Binds Item.
        /// </summary>
        private void BindItem()
        {
            Func <VariationContent, bool> filterAction = x =>
            {
                var mediaItemContent = x as MediaItemContent;
                if (mediaItemContent == null)
                {
                    return(false);
                }

                return(mediaItemContent.Facet_MediaType == mediatypes.SelectedValue);
            };

            AddToCart.FilterAction = filterAction;

            ProductPromotions.FilterAction = filterAction;
            ProductPromotions.DataBind();

            ProductPriceDetails.FilterAction = filterAction;
            ProductPriceDetails.DataBind();

            ProductWarehouseInfo.FilterAction = filterAction;
            ProductWarehouseInfo.DataBind();
        }