Example #1
0
 // Restores original state
 public void SetMemento(Memento memento)
 {
     Console.WriteLine("Restoring state...");
     State = memento.State;
 }
Example #2
0
 // Restores original state
 public void SetMemento(Memento memento)
 {
     Console.WriteLine("Restoring state...");
     State = memento.State;
 }