public void Build()
        {
            var factory = new BlockingLoadFilesAsyncListViewFileSetFactory(new StubImageProviderFactory(),InitializeListView );
            var fileSet = factory.Build(TargetDirectory,null);

            Assert.IsInstanceOf<ListViewFileSet_BlockingLoadFilesAsyncLoadImages>(fileSet);
        }
Ejemplo n.º 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();
        }