Esempio n. 1
0
        SplitMasterList(IEnumerable <TrackedFile> masterList,
                        int threadCount)
        {
            CollectionSplitter <TrackedFile> splitter = new CollectionSplitter <TrackedFile>();

            return(splitter.SplitCollection(masterList, threadCount));
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        SplitFiles(IEnumerable <TrackedFile> outstandingFiles, int subListCount)
        {
            CollectionSplitter <TrackedFile> splitter = new CollectionSplitter <TrackedFile>();

            return(splitter.SplitCollection(outstandingFiles, subListCount));
        }