Beispiel #1
0
            internal ThumbnailGalleryItem(ThumbnailGalleryItemFactory factory, IDisplaySet displaySet, NameAndDescriptionFormat nameAndDescriptionFormat)
                : base(displaySet)
            {
                _factory = factory;

                switch (nameAndDescriptionFormat)
                {
                case NameAndDescriptionFormat.NameAndDescription:
                    Name        = GetDisplaySetName(displaySet);
                    Description = GetDisplaySetDescription(displaySet);
                    break;

                case NameAndDescriptionFormat.NoDescription:
                    Name = GetDisplaySetName(displaySet);
                    break;

                case NameAndDescriptionFormat.VerboseNameNoDescription:
                    Name = GetDisplaySetDescription(displaySet);
                    break;

                case NameAndDescriptionFormat.VerboseNameAndDescription:
                    Name = Description = GetDisplaySetDescription(displaySet);
                    break;
                }
            }
Beispiel #2
0
            internal ThumbnailGalleryItem(ThumbnailGalleryItemFactory factory, IDisplaySet displaySet, NameAndDescriptionFormat nameAndDescriptionFormat, bool suppressLoadingThumbnails)
                : base(displaySet)
            {
                _factory = factory;
                _suppressLoadingImage = suppressLoadingThumbnails;

                switch (nameAndDescriptionFormat)
                {
                case NameAndDescriptionFormat.NameAndDescription:
                    Name        = GetDisplaySetName(displaySet);
                    Description = GetDisplaySetDescription(displaySet);
                    break;

                case NameAndDescriptionFormat.NoDescription:
                    Name = GetDisplaySetName(displaySet);
                    break;

                case NameAndDescriptionFormat.VerboseNameNoDescription:
                    Name = GetDisplaySetDescription(displaySet);
                    break;

                case NameAndDescriptionFormat.VerboseNameAndDescription:
                    Name = Description = GetDisplaySetDescription(displaySet);
                    break;
                }
            }