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 });
        }
示例#2
0
            public GridPanel(INuGenServiceProvider serviceProvider, ImageTracker imageTracker)
            {
                Debug.Assert(imageTracker != null, "imageTracker != null");
                _thumbnailManager = new ThumbnailManager(
                    serviceProvider
                    , this.Controls
                    , imageTracker
                    );

                _selectionService = new ThumbnailSelectionService(_thumbnailManager.Images);

                this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);

                this.AutoScroll = true;
                this.Anchor     = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
                this.BackColor  = Color.Transparent;
            }
 public void CtorArgumentNullExceptionTest()
 {
     _selectionService = new ThumbnailSelectionService(null);
 }