public static void Shutdown() { if (instance != null) { instance.Clear(); instance = null; } }
public static void Init(int maxLevel) { Trace.Assert(instance == null); instance = new UndoSystem(maxLevel); }