public override void Setup()
        {
            base.Setup();
            InitializeListView_WasCalled = false;
            _factory = new StubImageProviderFactory();
            _file1 = MakeImageFile();

            _fileSet = new ListViewFileSet_BlockingLoadFilesAsyncLoadImages(TargetDirectory, _factory, InitializeListView, "*.jpg");
        }
Пример #2
0
        public IListViewFileSet Build(DirectoryInfo dir, string[] filePatterns)
        {
            var fileSet = new ListViewFileSet_BlockingLoadFilesAsyncLoadImages(dir, _factory, _initializeListView, filePatterns);

            return(fileSet);
        }
 public IListViewFileSet Build(DirectoryInfo dir, string[] filePatterns)
 {
     var fileSet = new ListViewFileSet_BlockingLoadFilesAsyncLoadImages(dir, _factory, _initializeListView, filePatterns);
     return fileSet;
 }
Пример #4
0
 private IListViewFileSet GetListViewFileSet(DirectoryInfo dir)
 {
     IListViewFileSet listViewFileSet;
     if (!_dirs.ContainsKey(dir))
     {
         //_dirs[dir] = new ListViewFileSet(dir, new BackgroundWorker(), listView1, _filePatterns);
         listViewFileSet = new ListViewFileSet_BlockingLoadFilesAsyncLoadImages(dir,null ,null, _filePatterns);
         _dirs[dir] = listViewFileSet;
     }
     else
         listViewFileSet = _dirs[dir];
     return listViewFileSet;
 }