Example #1
0
        async void LoadThumbnails()
        {
            Task <List <UIImage> > thumbnailList = DownloadThumbnails();

            List <UIImage> thumbnailImages = await thumbnailList;

            NoScreenshotLabel.Hidden = true;

            UIView.Animate(0.2, 0, UIViewAnimationOptions.CurveEaseInOut, delegate {
                if (thumbnailImages.Count > 0)
                {
                    ScreenshotBtn1.SetImage(thumbnailImages[0], UIControlState.Normal);
                    ScreenshotBtn1.Alpha = 1;
                }
            }, delegate {
                UIView.Animate(0.2, 0, UIViewAnimationOptions.CurveEaseInOut, delegate {
                    if (thumbnailImages.Count > 1)
                    {
                        ScreenshotBtn2.SetImage(thumbnailImages[1], UIControlState.Normal);
                        ScreenshotBtn2.Alpha = 1;
                    }
                }, delegate {
                    UIView.Animate(0.2, 0, UIViewAnimationOptions.CurveEaseInOut, delegate {
                        if (thumbnailImages.Count > 2)
                        {
                            ScreenshotBtn3.SetImage(thumbnailImages[2], UIControlState.Normal);
                            ScreenshotBtn3.Alpha = 1;
                        }
                    }, delegate {
                        UIView.Animate(0.2, 0, UIViewAnimationOptions.CurveEaseInOut, delegate {
                            if (thumbnailImages.Count > 3)
                            {
                                ScreenshotBtn4.SetImage(thumbnailImages[3], UIControlState.Normal);
                                ScreenshotBtn4.Alpha = 1;
                            }
                        }, delegate {
                            UIView.Animate(0.2, 0, UIViewAnimationOptions.CurveEaseInOut, delegate {
                                if (thumbnailImages.Count > 4)
                                {
                                    ScreenshotBtn5.SetImage(thumbnailImages[4], UIControlState.Normal);
                                    ScreenshotBtn5.Alpha = 1;
                                }
                            }, null);
                        });
                    });
                });
            });
            DetailsScreenshots.UserInteractionEnabled = true;
        }
        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;
            }
        }