예제 #1
0
        public static void AddImageItem(
            string thumbnailImage,
            string regularImage,
            string largeImage,
            int imageSize,
            int sortOrder,
            bool isZoom,
            bool isEnlarge,
            int imageWidth,
            int imageHeight,
            Culture culture,
            string altTag,
            string titleTag
            )
        {
            ImageItem item = new ImageItem(GetNextImageID(), thumbnailImage, regularImage,
                                           largeImage, imageSize, sortOrder, isZoom, isEnlarge, imageWidth, imageHeight, culture, altTag, titleTag);

            ImageSession.Add(item);
        }
예제 #2
0
 public static void Clear()
 {
     ImageSession.Clear();
     HttpContext.Current.Session.Remove(SecondarySessionName);
 }
예제 #3
0
 public static void RemoveItem(string imageID)
 {
     ImageSession.Remove(FindItem(imageID));
 }