Esempio n. 1
0
        /// <summary>
        /// Loads the product images.
        /// </summary>
        private void LoadProductImages()
        {
            ImageCollection imageCollection = Store.Caching.ProductCache.GetImageCollectionByProduct(_product).Clone();

            if (imageCollection.Count > 0)
            {
                imageCollection.Sort("SortOrder", true);
                Img.Image drawnImage;
                System.Web.UI.WebControls.Image displayImage;
                foreach (Store.Image image in imageCollection)
                {
                    DisplayImage(ImageProcess.GetProductThumbnailUrl(image.ImageFile), image, out drawnImage, out displayImage);
                }
                imageList.TrimExcess();
                dlImages.DataSource = imageList;
                dlImages.DataBind();
            }
        }