/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void LocalWatcherPrintJobCompleted(object sender, PrintJobDataEventArgs e) { LogHelper.LogDebug(); if (e != null && e.Data != null) { if (_watchers != null && _watchers.Count > 0) { _watchers.RemoveWatcher(e.Data); } } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void LocalPrintEventWatcherPrintJobCompleted(object sender, PrintJobDataEventArgs e) { LogHelper.LogDebug(); // check the event args if (e != null && e.Data != null) { // check the watchers and remove the watcher for the specified data if (_watchers != null && _watchers.Count > 0) { _watchers.RemoveWatcher(e.Data); } } }