Пример #1
0
        /// <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);
                }
            }
        }
Пример #2
0
 public Note()
 {
     _date       = DateTime.Now;
     _priority   = NotePriority.Medium;
     _isArchived = false;
 }
Пример #3
0
		/// <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 );
				}
			}
		}