Пример #1
0
        public override void Redo(OutlinerDocument document, TreeListView treeListView)
        {
            OutlinerNote note = document.FindOutlinerNoteById(__NoteId);

            if (note == null)
            {
                return;
            }

            if (__Direction == IndentDirection.IncreaseIndent)
            {
                DocumentHelpers.IncreaseIndent(note, treeListView, false);
            }
            else
            {
                DocumentHelpers.DecreaseIndent(note, treeListView, false);
            }
        }
Пример #2
0
        public override void Undo(OutlinerDocument document, TreeListView treeListView)
        {
            OutlinerNote note = document.FindOutlinerNoteById(__NoteId);

            if (note == null)
            {
                return;
            }

            if (__Direction == IndentDirection.IncreaseIndent)
            {
                DocumentHelpers.DecreaseIndent(note, treeListView, false);
            }
            else
            {
                OutlinerNote limitNote = document.FindOutlinerNoteById(__LimitNoteId);
                DocumentHelpers.IncreaseIndentWithLimit(note, limitNote, __IsInlineEditFocused, treeListView, false);
            }
        }