示例#1
0
        public WadToolUndoManager(WadToolClass tool, int undoDepth) : base(undoDepth)
        {
            Tool = tool;

            UndoStackChanged += (s, e) => Tool.UndoStackChanged();
            MessageSent      += (s, e) => Tool.SendMessage(e.Message, TombLib.Forms.PopupType.Warning);
        }