public static void SaveState(Originator <T> orig) { mementoList.Add(orig.CreateMemento()); }
public static void RestoreState(Originator <T> orig, int checkPoint) { orig.RestoreMemento(mementoList[checkPoint]); }