public void restoreFromMemento(Memento memento) { Console.WriteLine("Originator: State after restoring from Memento: " + state); this.state = memento.getSavedState(); }
public void restoreFromMemento(Memento memento) { Console.WriteLine("Originator: State after restoring from Memento: " + state); this.state = memento.getSavedState(); }