コード例 #1
0
 public override void MakePayment()
 {
     Copier.ResponseWriter($"Payment successfully processed.{Environment.NewLine}");
     Copier.CopierState = new ChoosingDevice(Copier);
 }
コード例 #2
0
 public override void PrintDocument()
 {
     Copier.ResponseWriter($"Document printed successfully.{Environment.NewLine}");
     Copier.CopierState = new ChoosingDocument(Copier);
 }
コード例 #3
0
 public override void ReturnChange()
 {
     Copier.ResponseWriter($"Change returned successfully.{Environment.NewLine}");
     Copier.CopierState = new WaitingForPayment(Copier);
 }
コード例 #4
0
 public override void ChooseDocument()
 {
     Copier.ResponseWriter($"Document chosen successfully.{Environment.NewLine}");
     Copier.CopierState = new PrintingDocument(Copier);
 }