예제 #1
0
        private void PrepareSingleVenue()
        {
            var venue = Venues.FirstOrDefault();

            if (venue?.Latitude == null || venue?.Longitude == null)
            {
                return;
            }

            Locations = string.Format(_format,
                                      venue.Latitude.Value.ToString("###.########", System.Globalization.CultureInfo.InvariantCulture),
                                      venue.Longitude.Value.ToString("###.########", System.Globalization.CultureInfo.InvariantCulture),
                                      $"{venue.VenueName}, {venue.City}",
                                      $"<b>{venue.VenueName}</b><br />{venue.Street}<br />{venue.PostalCode} {venue.City}<br />");

            Locations = Locations.TrimEnd(new[] { ',', '\n' });
        }
예제 #2
0
 public Venue GetVenueById(int id)
 {
     return(Venues.FirstOrDefault(v => v.VenueId == id));
 }