public void Print() { if (_printer.CountPaper > 0) { Console.WriteLine("Printing..."); _printer.AddPaper(-1); _printer.SetState(_printer.WaitingState); } else { _printer.SetState(_printer.PaperOffState); _printer.PrintDocument(); } }
public void AddPaper(int count) { _printer.AddPaper(count); if (_printer.CountPaper > 0) { _printer.SetState(_printer.WaitingState); } }
public void AddPaper(int count) { _printer.AddPaper(count); }