public void updateRace(RaceItem raceItem) { LRaceCourse.Text = string.Format(Strings.info_course, raceItem.GetCourse()); DateTime raceTime; if (DateTime.TryParse(raceItem.GetTime(), out raceTime)) { LRaceTime.Text = string.Format(Strings.info_race_time, raceTime.ToString()); int minutesUntilRace = (int)(raceTime - DateTime.Now).TotalMinutes; LMinutesTillRace.Text = string.Format(Strings.info_minutes_till_race, minutesUntilRace); } LRaceDistance.Text = string.Format(Strings.info_distance, raceItem.GetDistance().ToString()); this.LvRunners.ItemsSource = raceItem.GetRunnerList(); }