Exemple #1
0
        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;
            }
        }
Exemple #2
0
        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;
                }
            }
        }