public ActionMemento GetMemento() { ActionMemento memento = new ActionMemento(); memento.ID = this.ID; memento.Name = this.Name; memento.ActionTime = this.ActionTime; return(memento); }
public void RestoreMemento(ActionMemento memento) { this.ID = memento.ID; this.Name = memento.Name; this.ActionTime = memento.ActionTime; }
public void SaveMemento(ActionMemento memento) { mementoList.Add(memento); }