void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (DetailsCover != null) { DetailsCover.Dispose(); DetailsCover = null; } if (DetailsDescription != null) { DetailsDescription.Dispose(); DetailsDescription = null; } if (DetailsMainTitleCell != null) { DetailsMainTitleCell.Dispose(); DetailsMainTitleCell = null; } if (DetailsNavReminderBtn != null) { DetailsNavReminderBtn.Dispose(); DetailsNavReminderBtn = null; } if (DetailsNavTitleLbl != null) { DetailsNavTitleLbl.Dispose(); DetailsNavTitleLbl = null; } if (DetailsOrderCell != null) { DetailsOrderCell.Dispose(); DetailsOrderCell = null; } if (DetailsPlatform != null) { DetailsPlatform.Dispose(); DetailsPlatform = null; } if (DetailsRating != null) { DetailsRating.Dispose(); DetailsRating = null; } if (DetailsRatingImage != null) { DetailsRatingImage.Dispose(); DetailsRatingImage = null; } if (DetailsRelease != null) { DetailsRelease.Dispose(); DetailsRelease = null; } if (DetailsReminderBtn != null) { DetailsReminderBtn.Dispose(); DetailsReminderBtn = null; } if (DetailsScreenshots != null) { DetailsScreenshots.Dispose(); DetailsScreenshots = null; } if (DetailsShowSocialNetworkViewBtn != null) { DetailsShowSocialNetworkViewBtn.Dispose(); DetailsShowSocialNetworkViewBtn = null; } if (DetailsSocialNetworkCloseBtn != null) { DetailsSocialNetworkCloseBtn.Dispose(); DetailsSocialNetworkCloseBtn = null; } if (DetailsSocialNetworkView != null) { DetailsSocialNetworkView.Dispose(); DetailsSocialNetworkView = null; } if (DetailsSpinner != null) { DetailsSpinner.Dispose(); DetailsSpinner = null; } if (DetailsTitle != null) { DetailsTitle.Dispose(); DetailsTitle = null; } if (DetailsTopView != null) { DetailsTopView.Dispose(); DetailsTopView = null; } if (DetailsTrailerCell != null) { DetailsTrailerCell.Dispose(); DetailsTrailerCell = null; } if (DetailsWebsiteCell != null) { DetailsWebsiteCell.Dispose(); DetailsWebsiteCell = null; } if (ImgVwBackground != null) { ImgVwBackground.Dispose(); ImgVwBackground = null; } if (LblMainGame != null) { LblMainGame.Dispose(); LblMainGame = null; } if (LblOrder != null) { LblOrder.Dispose(); LblOrder = null; } if (LblTrailer != null) { LblTrailer.Dispose(); LblTrailer = null; } if (LblWebsite != null) { LblWebsite.Dispose(); LblWebsite = null; } if (NoScreenshotLabel != null) { NoScreenshotLabel.Dispose(); NoScreenshotLabel = null; } if (PostBtn != null) { PostBtn.Dispose(); PostBtn = null; } if (ScreenshotBtn1 != null) { ScreenshotBtn1.Dispose(); ScreenshotBtn1 = null; } if (ScreenshotBtn2 != null) { ScreenshotBtn2.Dispose(); ScreenshotBtn2 = null; } if (ScreenshotBtn3 != null) { ScreenshotBtn3.Dispose(); ScreenshotBtn3 = null; } if (ScreenshotBtn4 != null) { ScreenshotBtn4.Dispose(); ScreenshotBtn4 = null; } if (ScreenshotBtn5 != null) { ScreenshotBtn5.Dispose(); ScreenshotBtn5 = null; } if (SocialNetworkCell != null) { SocialNetworkCell.Dispose(); SocialNetworkCell = null; } if (TweetBtn != null) { TweetBtn.Dispose(); TweetBtn = null; } if (ImgVwBackgroundOverlay != null) { ImgVwBackgroundOverlay.Dispose(); ImgVwBackgroundOverlay = null; } }
void LoadItemDetails() { if (!String.IsNullOrEmpty(game.cover_image_url_hires)) { LoadHiResCoverImage(); } if (String.IsNullOrEmpty(game.description)) { DetailsDescription.TextLabel.Text = "No description available"; DetailsDescription.TextLabel.Enabled = false; } else { DetailsDescription.TextLabel.Text = game.description; } if (String.IsNullOrEmpty(game.game_url)) { FreezeCells(DetailsWebsiteCell, LblWebsite, "No website available"); } if (String.IsNullOrEmpty(game.trailer_url)) { FreezeCells(DetailsTrailerCell, LblTrailer, "No trailer available"); } if (game.screenshots.Count > 0) { LoadThumbnails(); LoadBackgroundImage(game.screenshots [0].screenshot_url); } else { NoScreenshotLabel.Text = "No screenshots available"; ScreenshotBtn1.Hidden = true; ScreenshotBtn2.Hidden = true; ScreenshotBtn3.Hidden = true; ScreenshotBtn4.Hidden = true; ScreenshotBtn5.Hidden = true; DetailsScreenshots.UserInteractionEnabled = false; } if (game.order_links.Count.Equals(0)) { FreezeCells(DetailsOrderCell, LblOrder, "No order links available"); } else { _orderUrls = new List <string>(); } if (game.parent_game_id <= 0 || game.parent_game_id == null) { FreezeCells(DetailsMainTitleCell, LblMainGame, "No main game info available"); } else { GetParentItemJson(); } DetailsDescription.Transform = Utilities.Hide; DetailsWebsiteCell.Transform = Utilities.Hide; DetailsTrailerCell.Transform = Utilities.Hide; DetailsScreenshots.Transform = Utilities.Hide; DetailsOrderCell.Transform = Utilities.Hide; DetailsMainTitleCell.Transform = Utilities.Hide; DetailsShowSocialNetworkViewBtn.Transform = Utilities.Hide; UIView.AnimateNotify(0.4, 0, 0.65f, 0.0f, UIViewAnimationOptions.CurveEaseIn, delegate { DetailsSpinner.Transform = Utilities.Hide; DetailsDescription.Hidden = false; DetailsWebsiteCell.Hidden = false; DetailsTrailerCell.Hidden = false; DetailsScreenshots.Hidden = false; DetailsOrderCell.Hidden = false; DetailsMainTitleCell.Hidden = false; DetailsShowSocialNetworkViewBtn.Hidden = false; DetailsShowSocialNetworkViewBtn.Transform = Utilities.Show; DetailsDescription.Transform = Utilities.Show; DetailsWebsiteCell.Transform = Utilities.Show; DetailsTrailerCell.Transform = Utilities.Show; DetailsScreenshots.Transform = Utilities.Show; DetailsOrderCell.Transform = Utilities.Show; DetailsMainTitleCell.Transform = Utilities.Show; }, delegate { isLoaded = true; DetailsSpinner.StopAnimating(); }); }