コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="data"></param>
        public void Add(PrintJobData data)
        {
            if (data == null)
            {
                return;
            }

            Add(data.PrintJobTitle);
        }
コード例 #2
0
        public void RemoveTitle(PrintJobData data)
        {
            if (data == null)
            {
                return;
            }

            RemoveTitle(data.PrintJobTitle);
        }
コード例 #3
0
        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));
        }
コード例 #4
0
        /// <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));
        }
コード例 #5
0
        /// Init
        #region Init

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