コード例 #1
0
        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;
            }
        }
コード例 #2
0
 void EnableButtons(bool enabled)
 {
     ReviewsButton.SetEnabled(enabled);
     PhotosButton.SetEnabled(enabled);
 }