public WUndoStack() { m_undoStack = new LimitedSizeStack <WUndoCommand>(); m_redoStack = new LimitedSizeStack <WUndoCommand>(); SetUndoLimit(50); }