public UndoIndent(OutlinerNote note, bool isInlineNoteFocused, IndentDirection direction) { __Direction = direction; __NoteId = note.Id; __IsInlineEditFocused = isInlineNoteFocused; if (direction == IndentDirection.DecreaseIndent) { if (note.SubNotes.Count > 0) __LimitNoteId = note.SubNotes[note.SubNotes.Count - 1].Id; else __LimitNoteId = note.Id; } }
public UndoIndent(OutlinerNote note, bool isInlineNoteFocused, IndentDirection direction) { __Direction = direction; __NoteId = note.Id; __IsInlineEditFocused = isInlineNoteFocused; if (direction == IndentDirection.DecreaseIndent) { if (note.SubNotes.Count > 0) { __LimitNoteId = note.SubNotes[note.SubNotes.Count - 1].Id; } else { __LimitNoteId = note.Id; } } }