Exemple #1
0
        /// <summary>
        /// Raises the <see cref="NewPrintJobReceived"/> event.
        /// </summary>
        /// <param name="e">The event arguments</param>
        private void OnJobsChanged(JobChangedEventArgs e)
        {
            EventHandler <JobChangedEventArgs> handlers = NewPrintJobReceived;

            if (handlers != null)
            {
                handlers(this, e);
            }
        }
 /// <summary>
 /// Handles the NewJobFound event
 /// </summary>
 /// <param name="sender">The event sender</param>
 /// <param name="e">The event arguments</param>
 private void OnNewJobFound(object sender, JobChangedEventArgs e)
 {
     printJobStack.Push(e.JobInfo);
 }