/// <summary>
        ///
        /// </summary>
        /// <param name="data"></param>
        public void Add(PrintJobData data)
        {
            if (data == null)
            {
                return;
            }

            Add(data.PrintJobTitle);
        }
        public void RemoveTitle(PrintJobData data)
        {
            if (data == null)
            {
                return;
            }

            RemoveTitle(data.PrintJobTitle);
        }
        public bool HasTitleAndMorePages(PrintJobData data)
        {
            if (data == null)
            {
                return(false);
            }

            if (data.PrintJobTitle == null)
            {
                return(false);
            }

            return(HasTitleAndMorePages(data.PrintJobTitle.PrinterName, data.PrintJobTitle.Document, data.PrintJobTitle.Owner, data.PrintJobTitle.Host, data.PrintJobTitle.TotalPages));
        }
        /// <summary>
        /// Indicates whether list contains specified job title
        /// </summary>
        /// <param name="data">print job data</param>
        /// <returns></returns>
        public bool HasTitle(PrintJobData data)
        {
            if (data == null)
            {
                return(false);
            }

            if (data.PrintJobTitle == null)
            {
                return(false);
            }

            LogHelper.LogDebug(data.PrintJobTitle.ToString());
            return(HasTitle(data.PrintJobTitle.PrinterName, data.PrintJobTitle.Document, data.PrintJobTitle.Owner, data.PrintJobTitle.Host, data.PrintJobTitle.JobID));
        }
Beispiel #5
0
        /// Init
        #region Init

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="data"></param>
        public PrintJobDataEventArgs(PrintJobData data)
        {
            Data = data;
        }