Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var printer = new Printer(100, Ink.StandardInkSet());

            printer.OutOfPaperEvent    += OutOfPaperEventHandler;
            printer.OutOfInkEvent      += OutOfInkEventHandler;
            printer.PrintCompleteEvent += PrintCompleteEventHAndler;
            printer.Print(30);
            printer.Print(30);
            printer.Print(30);
            printer.BuyNewInk();
            printer.Print(30);
        }
Ejemplo n.º 2
0
 public void BuyNewInk()
 {
     Inks = Ink.EconomyInkSet();
 }