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