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

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

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