/// <summary> /// Raise the ProcessFile event. /// </summary> /// <param name="file">The file name.</param> void OnProcessFile(string file) { ProcessFileHandler handler = ProcessFile; if (handler != null) { var args = new ScanEventArgs(file); handler(this, args); alive_ = args.ContinueRunning; } }
private void OnProcessFile(string file) { ProcessFileHandler processFile = ProcessFile; if (processFile != null) { ScanEventArgs e = new ScanEventArgs(file); processFile(this, e); alive_ = e.ContinueRunning; } }
// Token: 0x0600079B RID: 1947 RVA: 0x0002C588 File Offset: 0x0002A788 private void OnProcessFile(string file) { ProcessFileHandler processFile = this.ProcessFile; if (processFile != null) { ScanEventArgs scanEventArgs = new ScanEventArgs(file); processFile(this, scanEventArgs); this.alive_ = scanEventArgs.ContinueRunning; } }
/// <summary> /// Fires the <see cref="ProcessFile">ProcessFile delegate</see>. /// </summary> /// <param name="file">The file being processed.</param> /// <returns>A boolean indicating if execution should continue or not.</returns> public bool OnProcessFile(string file) { bool result = true; ProcessFileHandler handler = ProcessFile; if (handler != null) { ScanEventArgs args = new ScanEventArgs(file); handler(this, args); result = args.ContinueRunning; } return(result); }
public bool OnProcessFile(string file) { bool result = true; ProcessFileHandler processFile = ProcessFile; if (processFile != null) { ScanEventArgs scanEventArgs = new ScanEventArgs(file); processFile(this, scanEventArgs); result = scanEventArgs.ContinueRunning; } return(result); }
public bool OnProcessFile(string file) { bool continueRunning = true; ProcessFileHandler processFile = ProcessFile; if (processFile != null) { ScanEventArgs e = new ScanEventArgs(file); processFile(this, e); continueRunning = e.ContinueRunning; } return(continueRunning); }