Example #1
0
        public View GetInfoContents(Marker marker)
        {
            Park     park  = parkRepository.GetParkById(Int32.Parse(marker.Title));
            View     popup = inflater.Inflate(Resource.Layout.InfoWindow, null);
            TextView title = popup.FindViewById <TextView>(Resource.Id.titleTextView);

            title.Text = park.Name;

            TextView address = popup.FindViewById <TextView>(Resource.Id.addressTextView);

            address.Text = park.Address;


            TextView hours = popup.FindViewById <TextView>(Resource.Id.hoursTextView);

            hours.Text = park.Hours;

            return(popup);
        }
Example #2
0
 public Park GetParkById(int id)
 {
     return(parkRepository.GetParkById(id));
 }