Пример #1
0
 public void Add(UserMemento memento)
 {
     _mementos.Add(memento);
 }
 public void GetMemento(UserMemento memento)
 {
     Console.WriteLine("{0} is trying to restore state from memento", Name);
     memento.GetState(this);
 }