public void AddRecentAssembly(string path) { if (RecentAssemblyList.Contains(path) == false) { if (RecentAssemblyList.Count == this.MaxRecentFiles) { RecentAssemblyList.RemoveAt(RecentAssemblyList.Count - 1); } RecentAssemblyList.Insert(0, path); } else { if (RecentAssemblyList.Count == this.MaxRecentFiles) { RecentAssemblyList.RemoveAt(RecentAssemblyList.Count - 1); } RecentAssemblyList.Remove(path); RecentAssemblyList.Insert(0, path); } this.Save(); }
public void ClearRecentAssemblies() { RecentAssemblyList.Clear(); this.Save(); }