示例#1
0
        public void AddWatcherX(PrintJobTitle data)
        {
            if (data == null)
            {
                return;
            }

            LogHelper.LogDebug(data.ToString());

            if (_watchers != null)
            {
                _watchers.AddWatcher(new PrintJobWatcher(data));
            }
        }
        /// <summary>
        /// Skips specified title during watch process
        /// </summary>
        /// <param name="title">title to be skipped during watch process [during document print]</param>
        public void SkipDocument(PrintJobTitle title)
        {
            // check title
            if (title == null)
            {
                return;
            }

            lock (_titlesToSkip)
            {
                LogHelper.Log("SkipDocument : " + title.ToString());
                _titlesToSkip.Add(title);
            }
        }
示例#3
0
        /// <summary>
        /// Adds watcher to the specified print job data
        /// </summary>
        /// <param name="data"></param>
        public void AddWatcher(PrintJobTitle data)
        {
            // check title
            if (data == null)
            {
                return;
            }

            // check watchers
            LogHelper.LogDebug(data.ToString());

            if (_watchers != null)
            {
                // add watcher for the specified title
                _watchers.AddWatcher(new PrintJobWatcher(data));
            }
        }