예제 #1
0
 private static void Print(Printer printer, PrinterManager manager)
 {
     if (manager.OnStartPrinting.Invoke(printer))
     {
         manager.Print(printer);
         manager.OnEndPrinting(printer);
     }
     else
     {
         Console.WriteLine("There is no such printer");
     }
 }