private void updateRecentProject(string filePath) { string fileName = Path.GetFileName(filePath); var proj = new Sql8rProjectFile(fileName, filePath); var io = new SettingsIO(); IList <Sql8rProjectFile> projs = io.LoadRecentProjects(); if (!projs.Contains(proj)) { projs.Add(proj); io.SaveRecentProjects(projs); } }