Exemple #1
0
        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);
        }
Exemple #2
0
 public List <Speed> LoadSpeeds(Language language, Entities.Stream stream)
 {
     return(GetSpeeds(language, stream));
 }