예제 #1
0
 public void GetStateFromMemento(Memento memento)
 {
     state = memento.GetState();
 }
예제 #2
0
 public int add(Memento state)
 {
     mementoList.Add(state);
     return(mementoList.Count - 1);
 }