public void SetMemento(Memento memento) { System.Diagnostics.Debug.WriteLine("Restoring state..."); State = memento.State; }