Example #1
0
 public void Remove(int index)
 {
     if (index < LastFolders.Count)
     {
         LastFolders.RemoveAt(index);
     }
 }
Example #2
0
        public void Add(string folderPath)
        {
            if (!LastFolders.Contains(folderPath))
            {
                LastFolders.Insert(0, folderPath);
            }

            if (LastFolders.Count > 10)
            {
                LastFolders.RemoveRange(10, LastFolders.Count - 10);
            }
        }