Beispiel #1
0
 static void OutOfInkEventHandler(object sender, OutOfInkEventArks args)
 {
     Console.WriteLine($"Printer ran out of { args.color}, please put new {args.color} ink");
 }
Beispiel #2
0
 private void OutOfInkEventHandler(object sender, OutOfInkEventArks args)
 {
     Console.WriteLine(
         $"{DateTime.Now.ToLongDateString()} " +
         $"{ DateTime.Now.ToLongTimeString()} | [PrinterLog]: Out of {args.color} ink");
 }