示例#1
0
 public void Save(Canon144Z canon)
 {
     if (canon == null)
     {
         throw new ArgumentNullException("No printer");
     }
     memento = canon.GetPrinter();
     Console.WriteLine("Save state");
 }
示例#2
0
 public void SetMemento(Printeer memento)
 {
     pages = memento.ControlPages();
 }