public void RememberPathInSettings(string path) { RestoreSettings(); if (LastKnownProjectPaths.Contains(path)) { LastKnownProjectPaths.Remove(path); } LastKnownProjectPaths.Insert(0, path); SaveSettings(); }
public void RestoreAndRemovePathsOfDeletedProjects() { RestoreSettings(); foreach (var path in LastKnownProjectPaths.ToArray()) { if (!IsPathAProject(path)) { LastKnownProjectPaths.Remove(path); } } SaveSettings(); }