public void Remove(int index) { if (index < LastFolders.Count) { LastFolders.RemoveAt(index); } }
public void Add(string folderPath) { if (!LastFolders.Contains(folderPath)) { LastFolders.Insert(0, folderPath); } if (LastFolders.Count > 10) { LastFolders.RemoveRange(10, LastFolders.Count - 10); } }