Example #1
0
            public void Dispose()
            {
                if (owner.undoGroupLevel == 1)
                {
                    owner.AddToUndo(new UndoAction(false));

                    owner.ClearGroupIfNeccessary();
                }

                owner.undoGroupLevel--;
            }
Example #2
0
            public UndoGroupHelper(UndoHelper owner)
            {
                this.owner = owner;

                if (owner.undoGroupLevel == 0)
                {
                    owner.AddToUndo(new UndoAction(true));
                }

                owner.undoGroupLevel++;
            }