コード例 #1
0
        private void DrawJourneyDetails()
        {
            var dto = journeyRepository.GetSpecificJourneyStats(SelectedJourneyId);

            textStartTime.Text  = dto.Starting.ToString("HH:mm");
            textDriverName.Text = dto.DriverName;
            textEndPoint.Text   = dto.EndPoint;
            textDistance.Text   = string.Format("{0} Miles", Math.Round((dto.Distance / 1.61), 1));
            textDuration.Text   = string.Format("{0} Hours {1} Minutes", dto.Duration.Hours, dto.Duration.Minutes);
        }