Exemplo n.º 1
0
 public void SaveSettings()
 {
     if (LastKnownProjectPaths != null)
     {
         m_Serializer.SaveObject(FilePath, LastKnownProjectPaths.ToArray());
     }
 }
Exemplo n.º 2
0
        public void RestoreAndRemovePathsOfDeletedProjects()
        {
            RestoreSettings();

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