コード例 #1
0
 public void Launch(ImageOperation[] operations)
 {
     if (!operationThread.IsAlive)
     {
         processed = 0;
         operationThread.Start(operations);
     }
 }
コード例 #2
0
        public void Start(ImageOperation[] operations)
        {
            //run the scanners
            foreach (Scanner scanner in scanners)
                scanner.Scan();

            //launch managers with a set of operations
            foreach (BatchManager manager in batchManagers)
                manager.Launch(operations);
        }
コード例 #3
0
 private IEnumerable<ImageOperation> GetPriorities(ImageOperation[] operations,int min, int max)
 {
     return from op in operations
            where op.Priority >= min &&
            op.Priority < max
            select op;
 }