Пример #1
0
 static void OutOfInkEventHandler2(object sender, OutOfInkEventArgs args)
 {
     Console.WriteLine("Refill [" + args.Color + "] Ink");
     PrinterOK = false;
 }
Пример #2
0
 private void OutOfInkEventHandler(object sender, OutOfInkEventArgs args)
 {
     Console.WriteLine($"[Printer Log] {DateTime.Now.ToShortDateString()} {DateTime.Now.ToShortTimeString()} Out of [" + args.Color + "] Ink");
 }