public void ShouldBuild()
 {
     const int size = 100;
     var factory = new SimpleBitmapThumbnailGetterFactory(size);
     var getter = factory.Build();
     Assert.IsInstanceOf<SimpleBitmapThumbnailGetter>(getter);
     Assert.AreEqual(size, ((SimpleBitmapThumbnailGetter)getter).ThumbnailSize);
 }
Beispiel #2
0
        void view_BrowserViewLoad(object sender, IImageBrowserView view)
        {
            view.DirectoryTree.InitDrives();
            view.DirectoryTree.DirectorySelected += view.OnDirectorySelected;

            var imageProviderFactory = new SimpleBitmapThumbnailGetterFactory(100);
            var fileSetFactory = new BlockingLoadFilesAsyncListViewFileSetFactory(imageProviderFactory, _view.InitializeListView);
            _thumbnailSets = new ThumbnailSets(view.ListViewParentContainer, new[] { "*.jpg", "*.bmp", "*.png" }, fileSetFactory);

            InitTimer();
        }