void ReleaseDesignerOutlets() { if (DistanceLabel != null) { DistanceLabel.Dispose(); DistanceLabel = null; } if (MapView != null) { MapView.Dispose(); MapView = null; } if (PhotosButton != null) { PhotosButton.Dispose(); PhotosButton = null; } if (RatingLabel != null) { RatingLabel.Dispose(); RatingLabel = null; } if (ReviewsButton != null) { ReviewsButton.Dispose(); ReviewsButton = null; } if (StartImage != null) { StartImage.Dispose(); StartImage = null; } if (PlaceNameLabel != null) { PlaceNameLabel.Dispose(); PlaceNameLabel = null; } }
void EnableButtons(bool enabled) { ReviewsButton.SetEnabled(enabled); PhotosButton.SetEnabled(enabled); }