Example #1
0
        public ThumbnailSelectionService(NuGenThumbnailContainer.ImageCollection imageCollection)
        {
            if (imageCollection == null)
            {
                throw new ArgumentNullException("imageCollection");
            }

            _imageCollection = imageCollection;
        }
        public void SetUp()
        {
            NuGenThumbnailContainer.ImageCollection imageCollection = new NuGenThumbnailContainer.ImageCollection(new NuGenThumbnailContainer.ImageTracker());
            _selectionService = new ThumbnailSelectionService(imageCollection);

            _bmp  = this.CreateBitmap();
            _bmp2 = this.CreateBitmap();
            _bmp3 = this.CreateBitmap();

            imageCollection.AddRange(new Image[] { _bmp, _bmp2, _bmp3 });
        }
		public void SetUp()
		{
			NuGenThumbnailContainer.ImageCollection imageCollection = new NuGenThumbnailContainer.ImageCollection(new NuGenThumbnailContainer.ImageTracker());
			_selectionService = new ThumbnailSelectionService(imageCollection);

			_bmp = this.CreateBitmap();
			_bmp2 = this.CreateBitmap();
			_bmp3 = this.CreateBitmap();

			imageCollection.AddRange(new Image[] { _bmp, _bmp2, _bmp3 });
		}
		public ThumbnailSelectionService(NuGenThumbnailContainer.ImageCollection imageCollection)
		{
			if (imageCollection == null)
			{
				throw new ArgumentNullException("imageCollection");
			}

			_imageCollection = imageCollection;
		}