public void LoadProject() { string mapDirectory = WorkingDirectory + "/Maps"; Maps.Clear(); if (!Directory.Exists(mapDirectory)) { throw new ArgumentException("Working directory does not have a maps sub-directory."); } string[] mapFiles = Directory.GetFiles(mapDirectory); foreach (string mapFileName in mapFiles) { Maps.Add(MapProvider.LoadFromFile(mapFileName)); } }