static void Main(string[] args) { Activity act = new Activity(); var filesInDir = Directory.GetFiles(dir); List<Files> fileList = new List<Files>(); int i = 0; foreach (var file in filesInDir) { fileList.Add( new Files(i, file) ); var path = fileList[i].Path; //var activity = new Activity(); var infoList = act.GetInfo(path); var dateInfo = infoList[0].Id; //activity.LapList[0].StartTime; var shownPath = path.Replace(@"F:\___PORZĄDKI___Dysk_D\.Net Libraries\tcx\", ""); Console.WriteLine(fileList[i].Index + " - " + dateInfo); i++; } Console.WriteLine("Which file you want to know better (nr)? ;"); int answer = Convert.ToInt32(Console.ReadLine()); string chosenPath = fileList[answer].Path; var visiblePath = chosenPath.Replace(@"F:\___PORZĄDKI___Dysk_D\.Net Libraries\tcx\", ""); //var fullPath = chosenPath; Console.WriteLine(chosenPath); var activityList = act.GetInfo(exampleFile);//chosenPath); foreach (var item in activityList) { Console.WriteLine("sport: {0}",item.Sport); Console.WriteLine("id: {0}",item.Id); var laps = item.LapList; int j = 1; foreach (var el in laps) { Console.WriteLine("- {0} km", j); Console.WriteLine(" start: {0}", el.StartTime.ToLongTimeString()); //Console.WriteLine(" total sec: {0}", el.TotalSeconds); Console.WriteLine(" distance: {0:F2}", el.Distance); //Console.WriteLine(" calories: {0}", el.Calories); Console.WriteLine(" avg HR: {0}", el.AvgHR); Console.WriteLine(" max HR: {0}", el.MaxHR); Console.WriteLine(" avg speed: {0:F2} km/h", el.AvgSpeed); Console.WriteLine(" avg speed: {0:F2} m/s", 0.27778 * el.AvgSpeed); Console.WriteLine(); j++; //foreach (var track in tracks) //{ // Console.WriteLine(track.); //} } } Console.ReadKey(); }