コード例 #1
0
 private void scannerImageFound(Scanner scanner,ScannerEventArgs e)
 {
     if (!e.Handled && files.Count != batchSettings.MaxFiles)
     {
         e.NowHandled();
         files.Push(e.File);
         if (FileAdded != null)
             FileAdded.Invoke(this);
         if (files.Count == batchSettings.MaxFiles)
         {
             if (AtMaxCapacity != null)
                 AtMaxCapacity.Invoke(this);
         }
     }
 }
コード例 #2
0
 public void WatchScanner(Scanner scanner)
 {
     scanner.ImageFound += scannerImageFound;
 }