Example #1
0
 /// <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);
         }
     }
 }
Example #2
0
        /// <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);
                }
            }
        }