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