public static void GetSimList(string simPath) { SimulatorPath = simPath; foreach (var directory in Directory.GetDirectories(simPath + "\\SimObjects\\Airplanes")) { var dir = new DirectoryInfo(directory); MyModels.Add(new MyModelMatching { ModelTitle = dir.Name }); } }