SplitMasterList(IEnumerable <TrackedFile> masterList, int threadCount) { CollectionSplitter <TrackedFile> splitter = new CollectionSplitter <TrackedFile>(); return(splitter.SplitCollection(masterList, threadCount)); }
public ProcessingViewModel(IEnumerable<PdfShrinker> shrinkers, int threadCount, Window activeWindow, bool showReport) { _TotalShrinkers = shrinkers.Count(); _ActiveWindow = activeWindow; ShowReport = showReport; ActiveShrinkers = new ObservableCollection<PdfShrinker>(); CompletedShrinkers = new ObservableCollection<PdfShrinker>(); CollectionSplitter<PdfShrinker> splitter = new CollectionSplitter<PdfShrinker>(); IEnumerable<IEnumerable<PdfShrinker>> masterList = splitter.SplitCollection(shrinkers, threadCount); StartProcessing(masterList); }
SplitFiles(IEnumerable <TrackedFile> outstandingFiles, int subListCount) { CollectionSplitter <TrackedFile> splitter = new CollectionSplitter <TrackedFile>(); return(splitter.SplitCollection(outstandingFiles, subListCount)); }