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); } }
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); } }