Exemplo n.º 1
0
 /// <summary>
 /// Remove a folder from the recently visited folders list.
 /// </summary>
 /// <param name="path">The path of the folder.</param>
 public void RemoveFolderFromVisitedList(string path)
 {
     if (VisitedFoldersLimit > 0 &&
         VisitedFoldersList.Contains(path))
     {
         VisitedFoldersList.Remove(path);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Add a folder to the recently visited folders list.
        /// </summary>
        /// <param name="path">The path of the folder.</param>
        public void AddFolderToVisitedList(string path)
        {
            if (VisitedFoldersList.Contains(path))
            {
                VisitedFoldersList.Remove(path);
            }

            VisitedFoldersList.Add(path);

            if (VisitedFoldersList.Count > VisitedFoldersLimit)
            {
                VisitedFoldersList.RemoveAt(0);
            }
        }