Example #1
0
        private void PopulateOnScreenInformation()
        {
            distanceView = FindViewById <TextView>(Resource.Id.tripDetailsMilesTraveledDetails);
            timeView     = FindViewById <TextView>(Resource.Id.tripDetailsTimesTraveledDetails);
            tripView     = FindViewById <TextView>(Resource.Id.tripDetailsTripsTraveledDetails);

            // Get the data
            JourneyRepository_.GetTripTotals(SelectedTripId, out TimeSpan span, out double distance, out int journeys);

            // Display the data
            tripView.Text     = Convert.ToString(journeys);
            distanceView.Text = Convert.ToString(Math.Round((distance / 1.61), 2));
            timeView.Text     = span.ToString(@"hh\:mm");
        }