/// <summary> /// Changes the priority of the current note /// </summary> /// <param name="priority">The new priority</param> private void ChangePriority(NotePriority priority) { if (!m_Running) { return; } if (SelectedNote != null && SelectedNote.Priority != priority) { SelectedNote.Priority = priority; tNotes.SelectedNode.ImageIndex = (int)priority; tNotes.SelectedNode.SelectedImageIndex = (int)priority; if (Pandora.Profile.Notes.NoteSorting == NoteSorting.Priority) { Pandora.Profile.Notes.NotesList.Sort(); RefreshNotes(SelectedNote); } } }
public Note() { _date = DateTime.Now; _priority = NotePriority.Medium; _isArchived = false; }
/// <summary> /// Changes the priority of the current note /// </summary> /// <param name="priority">The new priority</param> private void ChangePriority( NotePriority priority ) { if ( !m_Running ) return; if ( SelectedNote != null && SelectedNote.Priority != priority ) { SelectedNote.Priority = priority; tNotes.SelectedNode.ImageIndex = (int) priority; tNotes.SelectedNode.SelectedImageIndex = (int) priority; if ( Pandora.Profile.Notes.NoteSorting == NoteSorting.Priority ) { Pandora.Profile.Notes.NotesList.Sort(); RefreshNotes( SelectedNote ); } } }