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); } } }
public void WatchScanner(Scanner scanner) { scanner.ImageFound += scannerImageFound; }