コード例 #1
0
        public void RememberPathInSettings(string path)
        {
            RestoreSettings();

            if (LastKnownProjectPaths.Contains(path))
            {
                LastKnownProjectPaths.Remove(path);
            }

            LastKnownProjectPaths.Insert(0, path);
            SaveSettings();
        }
コード例 #2
0
        public void RestoreAndRemovePathsOfDeletedProjects()
        {
            RestoreSettings();

            foreach (var path in LastKnownProjectPaths.ToArray())
            {
                if (!IsPathAProject(path))
                {
                    LastKnownProjectPaths.Remove(path);
                }
            }
            SaveSettings();
        }