public void restore(EditorState state) { Console.WriteLine("Restoring state"); Content = state.Content; Title = state.Title; }
public void push(EditorState memento) { states.Add(memento); }