protected List <Speed> GetSpeeds(Language language, Entities.Stream stream) { List <Speed> speeds = new List <Speed>(); string speedfolder = this.speedInputFolder + language.ToString().ToLower() + "/" + stream.ToString().ToLower() + "/"; foreach (string file in Directory.EnumerateFiles(speedfolder, "*.txt")) { string fileName = Path.GetFileNameWithoutExtension(file); Speed speed = new Speed(fileName); speed.Path = file; speeds.Add(speed); } return(speeds); }
public List <Speed> LoadSpeeds(Language language, Entities.Stream stream) { return(GetSpeeds(language, stream)); }