public void OutOfPaperEventHandler(object sender, OutOfPaperEventArgs args) { Console.WriteLine($"Printer OutOfPaper at {args.Page} page \n{DateTime.Now.ToLongDateString()} {DateTime.Now.ToLongTimeString()}"); }
static void OutOfPaperEventHandler2(object sender, OutOfPaperEventArgs args) { Console.WriteLine("Main out of paper event handler"); ReadyToPrint = false; }