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); }
public void BuyNewInk() { Inks = Ink.EconomyInkSet(); }