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