void ReleaseDesignerOutlets()
        {
            if (ActivityIndicator != null)
            {
                ActivityIndicator.Dispose();
                ActivityIndicator = null;
            }

            if (DirectionsLabel != null)
            {
                DirectionsLabel.Dispose();
                DirectionsLabel = null;
            }

            if (StatusMessageLabel != null)
            {
                StatusMessageLabel.Dispose();
                StatusMessageLabel = null;
            }

            if (StatusLabelGroup != null)
            {
                StatusLabelGroup.Dispose();
                StatusLabelGroup = null;
            }

            if (WebView != null)
            {
                WebView.Dispose();
                WebView = null;
            }
        }
        public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
        {
            var controller = (DetailViewController)((UINavigationController)segue.DestinationViewController).TopViewController;
            var indexPath  = TableView.IndexPathForSelectedRow;

            // TODO: LOAD YOUR VIEW FOR THE RELEVANT CHALLENGE INTO THE DETAIL VIEW.
            //var item = dataSource.Objects[indexPath.Row];

            //Example challenge 2 will show the shared string applied to the label.
            if (indexPath.Row == 1)
            {
                Class1 cls = new Class1();
                controller.SetDetailItem(cls.SOME_TEST_STRING + " Checkpoints challenge (4 to 9)"); // CURRENTLY WILL JUST ToString. Must instead set a subview representing your challenge UI.
            }
            //Example challenge 1 and challenge 3 will load a WKWebview to google.ca. Instead of a WKWebview this can be any custom UIView designed and outletted into this project.
            //This is merely to show a view loading into the panel in a quick/dirty way. Feel free to do this any way you like.
            else
            {
                var wv = new WebKit.WKWebView(controller.View.Frame, new WebKit.WKWebViewConfiguration());
                wv.LoadRequest(new NSUrlRequest(new NSUrl("https://www.google.ca")));
                controller.SetDetailItem(wv);
            }
            controller.NavigationItem.LeftBarButtonItem             = SplitViewController.DisplayModeButtonItem;
            controller.NavigationItem.LeftItemsSupplementBackButton = true;
        }
        void ReleaseDesignerOutlets()
        {
            if (backButton != null)
            {
                backButton.Dispose();
                backButton = null;
            }

            if (forwardButton != null)
            {
                forwardButton.Dispose();
                forwardButton = null;
            }

            if (desktopWebView != null)
            {
                desktopWebView.Dispose();
                desktopWebView = null;
            }

            if (mobileWebView != null)
            {
                mobileWebView.Dispose();
                mobileWebView = null;
            }
        }
 void ReleaseDesignerOutlets()
 {
     if (webView != null) {
         webView.Dispose ();
         webView = null;
     }
 }
 void ReleaseDesignerOutlets()
 {
     if (AboutWebView != null)
     {
         AboutWebView.Dispose();
         AboutWebView = null;
     }
 }
 void ReleaseDesignerOutlets()
 {
     if (webKit != null)
     {
         webKit.Dispose();
         webKit = null;
     }
 }
 void ReleaseDesignerOutlets()
 {
     if (TermsofuseWebview != null)
     {
         TermsofuseWebview.Dispose();
         TermsofuseWebview = null;
     }
 }
示例#8
0
 private void FormsWebViewRenderer_OnControlChanged(object sender, WebKit.WKWebView e)
 {
     // Safari“开发”菜单项,启动app后,打开Safari 开发 模拟
     e.Configuration.UserContentController.AddScriptMessageHandler(WebSpeakerJs.Instance, WebSpeakerJs.Log);
     e.Configuration.UserContentController.AddScriptMessageHandler(WebSpeakerJs.Instance, WebSpeakerJs.InitRun);
     e.Configuration.UserContentController.AddScriptMessageHandler(WebSpeakerJs.Instance, WebSpeakerJs.Speak);
     e.Configuration.UserContentController.AddScriptMessageHandler(WebSpeakerJs.Instance, WebSpeakerJs.SpeakEnd);
 }
 void ReleaseDesignerOutlets()
 {
     if (webView != null)
     {
         webView.Dispose();
         webView = null;
     }
 }
            public WebViewWrapper(WebKit.WKWebView view)
            {
                this.webview = view;

                // Add the webview as a subview
                AddSubview(webview);

                // Make the webview frame fill the wrapper view
                webview.Frame = new CGRect(0, 0, 175, 100);
            }
示例#11
0
        protected override bool ShouldStartLoad(WebKit.WKWebView webView, WebKit.WKNavigationAction navigationAction)
        {
            if (!navigationAction.Request.Url.AbsoluteString.StartsWith("file://", StringComparison.Ordinal))
            {
                var viewController = new WebBrowserViewController(navigationAction.Request.Url.AbsoluteString);
                PresentViewController(viewController, true, null);
                return(false);
            }

            return(base.ShouldStartLoad(webView, navigationAction));
        }
        private void ShowHtml(string htmlContent, MapPoint position)
        {
            // Create the web view
            WebKit.WKWebView myWebView = new WebKit.WKWebView(new CGRect(), new WebKit.WKWebViewConfiguration());

            // Load the HTML content
            myWebView.LoadHtmlString(new NSString(htmlContent), new NSUrl(""));

            // Show the callout
            _myMapView.ShowCalloutAt(position, new WebViewWrapper(myWebView));
        }
        void ReleaseDesignerOutlets()
        {
            if (addressTextField != null)
            {
                addressTextField.Dispose();
                addressTextField = null;
            }

            if (webView != null)
            {
                webView.Dispose();
                webView = null;
            }
        }
示例#14
0
        void ReleaseDesignerOutlets()
        {
            if (agree != null)
            {
                agree.Dispose();
                agree = null;
            }

            if (webview != null)
            {
                webview.Dispose();
                webview = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (ItemDescriptionLabel != null)
            {
                ItemDescriptionLabel.Dispose();
                ItemDescriptionLabel = null;
            }

            if (web != null)
            {
                web.Dispose();
                web = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (TextFieldURL != null)
            {
                TextFieldURL.Dispose();
                TextFieldURL = null;
            }

            if (WebKit != null)
            {
                WebKit.Dispose();
                WebKit = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (buttonBack != null)
            {
                buttonBack.Dispose();
                buttonBack = null;
            }

            if (WebviewContainer != null)
            {
                WebviewContainer.Dispose();
                WebviewContainer = null;
            }
        }
示例#18
0
        protected override bool ShouldStartLoad(WebKit.WKWebView webView, WebKit.WKNavigationAction navigationAction)
        {
            var url = navigationAction.Request.Url;

            if (url.Scheme.Equals("app"))
            {
                var func = url.Host;

                if (string.Equals(func, "buy", StringComparison.OrdinalIgnoreCase))
                {
                    Activate(_featuresService.ActivatePro).ToBackground();
                }
                else if (string.Equals(func, "restore", StringComparison.OrdinalIgnoreCase))
                {
                    Activate(_featuresService.RestorePro).ToBackground();
                }

                return(false);
            }

            if (url.Scheme.Equals("mailto", StringComparison.OrdinalIgnoreCase))
            {
                UIApplication.SharedApplication.OpenUrl(url);
                return(false);
            }

            if (url.Scheme.Equals("file"))
            {
                return(true);
            }

            if (url.Scheme.Equals("http") || url.Scheme.Equals("https"))
            {
                var view = new WebBrowserViewController(url.AbsoluteString);
                view.NavigationItem.LeftBarButtonItem = new UIBarButtonItem(Images.Buttons.CancelButton, UIBarButtonItemStyle.Done,
                                                                            (s, e) => DismissViewController(true, null));
                PresentViewController(new ThemedNavigationController(view), true, null);
                return(false);
            }

            return(false);
        }
示例#19
0
            static void UserAgentFromWKWebView()
            {
                WebKit.WKWebViewConfiguration wkconf = new WebKit.WKWebViewConfiguration()
                {
                };
                WebKit.WKWebView wkwv = new WebKit.WKWebView(CoreGraphics.CGRect.Empty, wkconf);

                // TODO: WKWebKit UserAgent JavaScript handler not triggered from JavaScript
                WebKit.WKJavascriptEvaluationResult handler =
                    (NSObject result, NSError err) =>
                {
                    app_name_wkwebview  = null;
                    useragent_wkwebview = null;

                    if (err != null)
                    {
                        System.Console.WriteLine(err);
                    }
                    if (result != null)
                    {
                                #if DEBUG
                        System.Diagnostics.Debug.WriteLine($"User-Agent API result");
                                #endif
                    }

                    return;
                };

                // case sensitive stuff:
                //      navigator.*
                // few SO posts with Pascal case will not work!
                wkwv.EvaluateJavaScript((NSString)"navigator.appName", handler);
                wkwv.EvaluateJavaScript((NSString)"navigator.userAgent", handler);

                wkwv.LoadHtmlString("<html></html>", null);

                #if DEBUG
                System.Diagnostics.Debug.WriteLine($"User-Agent API useragent_wkwebview = {useragent_wkwebview}");
                #endif

                return;
            }
示例#20
0
        void ReleaseDesignerOutlets()
        {
            if (PrivacyHeightToolBarConstraint != null)
            {
                PrivacyHeightToolBarConstraint.Dispose();
                PrivacyHeightToolBarConstraint = null;
            }

            if (PrivacyToolBarContainer != null)
            {
                PrivacyToolBarContainer.Dispose();
                PrivacyToolBarContainer = null;
            }

            if (WebView != null)
            {
                WebView.Dispose();
                WebView = null;
            }
        }
示例#21
0
        void ReleaseDesignerOutlets()
        {
            if (btn != null)
            {
                btn.Dispose();
                btn = null;
            }

            if (lbl != null)
            {
                lbl.Dispose();
                lbl = null;
            }

            if (webView != null)
            {
                webView.Dispose();
                webView = null;
            }
        }
示例#22
0
        void ReleaseDesignerOutlets()
        {
            if (webView != null)
            {
                webView.Dispose();
                webView = null;
            }

            if (Button != null)
            {
                Button.Dispose();
                Button = null;
            }

            if (wkView != null)
            {
                wkView.Dispose();
                wkView = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (InputMoney != null)
            {
                InputMoney.Dispose();
                InputMoney = null;
            }

            if (ViewSetMoney != null)
            {
                ViewSetMoney.Dispose();
                ViewSetMoney = null;
            }

            if (WebView1 != null)
            {
                WebView1.Dispose();
                WebView1 = null;
            }
        }
示例#24
0
        void ReleaseDesignerOutlets()
        {
            if (TermsHeightToolBarConstraint != null)
            {
                TermsHeightToolBarConstraint.Dispose();
                TermsHeightToolBarConstraint = null;
            }

            if (TermsToolBarContainer != null)
            {
                TermsToolBarContainer.Dispose();
                TermsToolBarContainer = null;
            }

            if (WebView != null)
            {
                WebView.Dispose();
                WebView = null;
            }
        }
示例#25
0
        protected override bool ShouldStartLoad(WebKit.WKWebView webView, WebKit.WKNavigationAction navigationAction)
        {
            var url = navigationAction.Request.Url;

            if (url.Scheme.Equals("app"))
            {
                var func = url.Host;

                if (string.Equals(func, "buy", StringComparison.OrdinalIgnoreCase))
                {
                    Activate(_featuresService.ActivatePro).ToBackground();
                }
                else if (string.Equals(func, "restore", StringComparison.OrdinalIgnoreCase))
                {
                    Activate(_featuresService.RestorePro).ToBackground();
                }

                return(false);
            }

            if (url.Scheme.Equals("mailto", StringComparison.OrdinalIgnoreCase))
            {
                UIApplication.SharedApplication.OpenUrl(url);
                return(false);
            }

            if (url.Scheme.Equals("file"))
            {
                return(true);
            }

            if (url.Scheme.Equals("http") || url.Scheme.Equals("https"))
            {
                var view = new WebBrowserViewController(url.AbsoluteString);
                PresentViewController(view, true, null);
                return(false);
            }

            return(false);
        }
        void ReleaseDesignerOutlets()
        {
            if (cnsBackgroundImageHeight != null)
            {
                cnsBackgroundImageHeight.Dispose();
                cnsBackgroundImageHeight = null;
            }

            if (cnsBackgroundImageWidth != null)
            {
                cnsBackgroundImageWidth.Dispose();
                cnsBackgroundImageWidth = null;
            }

            if (cnsDescriptionHeight != null)
            {
                cnsDescriptionHeight.Dispose();
                cnsDescriptionHeight = null;
            }

            if (cnsDescriptionWidth != null)
            {
                cnsDescriptionWidth.Dispose();
                cnsDescriptionWidth = null;
            }

            if (CountdownText != null)
            {
                CountdownText.Dispose();
                CountdownText = null;
            }

            if (ivGenericBackground != null)
            {
                ivGenericBackground.Dispose();
                ivGenericBackground = null;
            }

            if (ivRewardImage != null)
            {
                ivRewardImage.Dispose();
                ivRewardImage = null;
            }

            if (lblClaimIt != null)
            {
                lblClaimIt.Dispose();
                lblClaimIt = null;
            }

            if (lblDescriptionFooter != null)
            {
                lblDescriptionFooter.Dispose();
                lblDescriptionFooter = null;
            }

            if (lblPointsButtonText != null)
            {
                lblPointsButtonText.Dispose();
                lblPointsButtonText = null;
            }

            if (lblStatus != null)
            {
                lblStatus.Dispose();
                lblStatus = null;
            }

            if (lblTapsCount != null)
            {
                lblTapsCount.Dispose();
                lblTapsCount = null;
            }

            if (LockImage != null)
            {
                LockImage.Dispose();
                LockImage = null;
            }

            if (LockImageStatus != null)
            {
                LockImageStatus.Dispose();
                LockImageStatus = null;
            }

            if (NameText != null)
            {
                NameText.Dispose();
                NameText = null;
            }

            if (NotifyButton != null)
            {
                NotifyButton.Dispose();
                NotifyButton = null;
            }

            if (peopleIcon != null)
            {
                peopleIcon.Dispose();
                peopleIcon = null;
            }

            if (RewardButton != null)
            {
                RewardButton.Dispose();
                RewardButton = null;
            }

            if (scrlMainContent != null)
            {
                scrlMainContent.Dispose();
                scrlMainContent = null;
            }

            if (statusTitleLabel != null)
            {
                statusTitleLabel.Dispose();
                statusTitleLabel = null;
            }

            if (SubTitleText != null)
            {
                SubTitleText.Dispose();
                SubTitleText = null;
            }

            if (UnitsAvailable != null)
            {
                UnitsAvailable.Dispose();
                UnitsAvailable = null;
            }

            if (UnlockInTitle != null)
            {
                UnlockInTitle.Dispose();
                UnlockInTitle = null;
            }

            if (UsersEligible != null)
            {
                UsersEligible.Dispose();
                UsersEligible = null;
            }

            if (vBackgroundImageShadow != null)
            {
                vBackgroundImageShadow.Dispose();
                vBackgroundImageShadow = null;
            }

            if (vBasis != null)
            {
                vBasis.Dispose();
                vBasis = null;
            }

            if (vContentBasis != null)
            {
                vContentBasis.Dispose();
                vContentBasis = null;
            }

            if (vEligibleRawBasis != null)
            {
                vEligibleRawBasis.Dispose();
                vEligibleRawBasis = null;
            }

            if (vFiltersRawBasis != null)
            {
                vFiltersRawBasis.Dispose();
                vFiltersRawBasis = null;
            }

            if (vMainContent != null)
            {
                vMainContent.Dispose();
                vMainContent = null;
            }

            if (vRewardsButtonCenterBasis != null)
            {
                vRewardsButtonCenterBasis.Dispose();
                vRewardsButtonCenterBasis = null;
            }

            if (vRewardUnlockTimeContainer != null)
            {
                vRewardUnlockTimeContainer.Dispose();
                vRewardUnlockTimeContainer = null;
            }

            if (vRightBottomBasis != null)
            {
                vRightBottomBasis.Dispose();
                vRightBottomBasis = null;
            }

            if (WebView != null)
            {
                WebView.Dispose();
                WebView = null;
            }
        }
示例#27
0
        void ReleaseDesignerOutlets()
        {
            if (btnTopNotify != null)
            {
                btnTopNotify.Dispose();
                btnTopNotify = null;
            }

            if (ChallengeImage != null)
            {
                ChallengeImage.Dispose();
                ChallengeImage = null;
            }

            if (ChallengeText != null)
            {
                ChallengeText.Dispose();
                ChallengeText = null;
            }

            if (cnsTableViewHeight != null)
            {
                cnsTableViewHeight.Dispose();
                cnsTableViewHeight = null;
            }

            if (cnsWebViewHeight != null)
            {
                cnsWebViewHeight.Dispose();
                cnsWebViewHeight = null;
            }

            if (CollectionViewHeightConstraint != null)
            {
                CollectionViewHeightConstraint.Dispose();
                CollectionViewHeightConstraint = null;
            }

            if (Content != null)
            {
                Content.Dispose();
                Content = null;
            }

            if (ImageHeightConstraint != null)
            {
                ImageHeightConstraint.Dispose();
                ImageHeightConstraint = null;
            }

            if (ImageOverlayView != null)
            {
                ImageOverlayView.Dispose();
                ImageOverlayView = null;
            }

            if (imgTopLock != null)
            {
                imgTopLock.Dispose();
                imgTopLock = null;
            }

            if (lblTopTime != null)
            {
                lblTopTime.Dispose();
                lblTopTime = null;
            }

            if (lblTopUnlocksIn != null)
            {
                lblTopUnlocksIn.Dispose();
                lblTopUnlocksIn = null;
            }

            if (MCCollectionView != null)
            {
                MCCollectionView.Dispose();
                MCCollectionView = null;
            }

            if (PointsImage != null)
            {
                PointsImage.Dispose();
                PointsImage = null;
            }

            if (PointsText != null)
            {
                PointsText.Dispose();
                PointsText = null;
            }

            if (ScrollView != null)
            {
                ScrollView.Dispose();
                ScrollView = null;
            }

            if (SelectAllThatApply != null)
            {
                SelectAllThatApply.Dispose();
                SelectAllThatApply = null;
            }

            if (SubmitButton != null)
            {
                SubmitButton.Dispose();
                SubmitButton = null;
            }

            if (TableView != null)
            {
                TableView.Dispose();
                TableView = null;
            }

            if (TimeText != null)
            {
                TimeText.Dispose();
                TimeText = null;
            }

            if (WebView != null)
            {
                WebView.Dispose();
                WebView = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (AspectHeight != null)
            {
                AspectHeight.Dispose();
                AspectHeight = null;
            }

            if (ChallengeImage != null)
            {
                ChallengeImage.Dispose();
                ChallengeImage = null;
            }

            if (ChallengeTextLbl != null)
            {
                ChallengeTextLbl.Dispose();
                ChallengeTextLbl = null;
            }

            if (cnImagePlaceholderAspect != null)
            {
                cnImagePlaceholderAspect.Dispose();
                cnImagePlaceholderAspect = null;
            }

            if (cnImagesCountHeight != null)
            {
                cnImagesCountHeight.Dispose();
                cnImagesCountHeight = null;
            }

            if (cnMapPlaceholderAspect != null)
            {
                cnMapPlaceholderAspect.Dispose();
                cnMapPlaceholderAspect = null;
            }

            if (cnMarginCount != null)
            {
                cnMarginCount.Dispose();
                cnMarginCount = null;
            }

            if (cnsMapTop1 != null)
            {
                cnsMapTop1.Dispose();
                cnsMapTop1 = null;
            }

            if (cnsWebViewHeight != null)
            {
                cnsWebViewHeight.Dispose();
                cnsWebViewHeight = null;
            }

            if (CountChallengeLbl != null)
            {
                CountChallengeLbl.Dispose();
                CountChallengeLbl = null;
            }

            if (DetailCollectionView != null)
            {
                DetailCollectionView.Dispose();
                DetailCollectionView = null;
            }

            if (DetailCollectionViewAspect != null)
            {
                DetailCollectionViewAspect.Dispose();
                DetailCollectionViewAspect = null;
            }

            if (MapViewBase != null)
            {
                MapViewBase.Dispose();
                MapViewBase = null;
            }

            if (NeedUploadCountText1 != null)
            {
                NeedUploadCountText1.Dispose();
                NeedUploadCountText1 = null;
            }

            if (paddingMap != null)
            {
                paddingMap.Dispose();
                paddingMap = null;
            }

            if (PointsImage != null)
            {
                PointsImage.Dispose();
                PointsImage = null;
            }

            if (PointsText != null)
            {
                PointsText.Dispose();
                PointsText = null;
            }

            if (ScrollContent != null)
            {
                ScrollContent.Dispose();
                ScrollContent = null;
            }

            if (ScrollView != null)
            {
                ScrollView.Dispose();
                ScrollView = null;
            }

            if (SubmitButton != null)
            {
                SubmitButton.Dispose();
                SubmitButton = null;
            }

            if (TimeText != null)
            {
                TimeText.Dispose();
                TimeText = null;
            }

            if (UploadedCountText1 != null)
            {
                UploadedCountText1.Dispose();
                UploadedCountText1 = null;
            }

            if (vImagePlaceholder != null)
            {
                vImagePlaceholder.Dispose();
                vImagePlaceholder = null;
            }

            if (vImagesCount != null)
            {
                vImagesCount.Dispose();
                vImagesCount = null;
            }

            if (WebView != null)
            {
                WebView.Dispose();
                WebView = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (CheckInCollectionView != null)
            {
                CheckInCollectionView.Dispose();
                CheckInCollectionView = null;
            }

            if (CheckInCollectionViewAspect != null)
            {
                CheckInCollectionViewAspect.Dispose();
                CheckInCollectionViewAspect = null;
            }

            if (cnsMapTop != null)
            {
                cnsMapTop.Dispose();
                cnsMapTop = null;
            }

            if (cnWebViewHeight != null)
            {
                cnWebViewHeight.Dispose();
                cnWebViewHeight = null;
            }

            if (CollectionPeople != null)
            {
                CollectionPeople.Dispose();
                CollectionPeople = null;
            }

            if (Content != null)
            {
                Content.Dispose();
                Content = null;
            }

            if (CountPeopleLbl != null)
            {
                CountPeopleLbl.Dispose();
                CountPeopleLbl = null;
            }

            if (DescriptionCount != null)
            {
                DescriptionCount.Dispose();
                DescriptionCount = null;
            }

            if (HeaderLbl != null)
            {
                HeaderLbl.Dispose();
                HeaderLbl = null;
            }

            if (MainContent != null)
            {
                MainContent.Dispose();
                MainContent = null;
            }

            if (MainScroll != null)
            {
                MainScroll.Dispose();
                MainScroll = null;
            }

            if (MapView != null)
            {
                MapView.Dispose();
                MapView = null;
            }

            if (padding != null)
            {
                padding.Dispose();
                padding = null;
            }

            if (SubmitButton != null)
            {
                SubmitButton.Dispose();
                SubmitButton = null;
            }

            if (TimeDisLbl != null)
            {
                TimeDisLbl.Dispose();
                TimeDisLbl = null;
            }

            if (WebView != null)
            {
                WebView.Dispose();
                WebView = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (AspectHeight != null)
            {
                AspectHeight.Dispose();
                AspectHeight = null;
            }

            if (ChallengesImage != null)
            {
                ChallengesImage.Dispose();
                ChallengesImage = null;
            }

            if (cnsWebViewHeight != null)
            {
                cnsWebViewHeight.Dispose();
                cnsWebViewHeight = null;
            }

            if (CountOthersLbl != null)
            {
                CountOthersLbl.Dispose();
                CountOthersLbl = null;
            }

            if (CountPeopleLbl != null)
            {
                CountPeopleLbl.Dispose();
                CountPeopleLbl = null;
            }

            if (FBCollectionView != null)
            {
                FBCollectionView.Dispose();
                FBCollectionView = null;
            }

            if (FBCollectionViewAspect != null)
            {
                FBCollectionViewAspect.Dispose();
                FBCollectionViewAspect = null;
            }

            if (HeaderTextLbl != null)
            {
                HeaderTextLbl.Dispose();
                HeaderTextLbl = null;
            }

            if (MainScroll != null)
            {
                MainScroll.Dispose();
                MainScroll = null;
            }

            if (SubmitButton != null)
            {
                SubmitButton.Dispose();
                SubmitButton = null;
            }

            if (TimeLastLbl != null)
            {
                TimeLastLbl.Dispose();
                TimeLastLbl = null;
            }

            if (WebView != null)
            {
                WebView.Dispose();
                WebView = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (AspectHeight != null)
            {
                AspectHeight.Dispose();
                AspectHeight = null;
            }

            if (ChallengeImage != null)
            {
                ChallengeImage.Dispose();
                ChallengeImage = null;
            }

            if (ChallengeText != null)
            {
                ChallengeText.Dispose();
                ChallengeText = null;
            }

            if (cnsWebViewHeight != null)
            {
                cnsWebViewHeight.Dispose();
                cnsWebViewHeight = null;
            }

            if (CollectionView != null)
            {
                CollectionView.Dispose();
                CollectionView = null;
            }

            if (CollectionViewDescription != null)
            {
                CollectionViewDescription.Dispose();
                CollectionViewDescription = null;
            }

            if (HashBottomText != null)
            {
                HashBottomText.Dispose();
                HashBottomText = null;
            }

            if (HashtagCopiedText != null)
            {
                HashtagCopiedText.Dispose();
                HashtagCopiedText = null;
            }

            if (HashText != null)
            {
                HashText.Dispose();
                HashText = null;
            }

            if (HashTitle != null)
            {
                HashTitle.Dispose();
                HashTitle = null;
            }

            if (InstaCollectionView != null)
            {
                InstaCollectionView.Dispose();
                InstaCollectionView = null;
            }

            if (InstaCollectionViewAspect != null)
            {
                InstaCollectionViewAspect.Dispose();
                InstaCollectionViewAspect = null;
            }

            if (MainScroll != null)
            {
                MainScroll.Dispose();
                MainScroll = null;
            }

            if (MainSrollBottomConstraint != null)
            {
                MainSrollBottomConstraint.Dispose();
                MainSrollBottomConstraint = null;
            }

            if (PointsImage != null)
            {
                PointsImage.Dispose();
                PointsImage = null;
            }

            if (PointsText != null)
            {
                PointsText.Dispose();
                PointsText = null;
            }

            if (SubmitButton != null)
            {
                SubmitButton.Dispose();
                SubmitButton = null;
            }

            if (TagCopiedView != null)
            {
                TagCopiedView.Dispose();
                TagCopiedView = null;
            }

            if (TimeText != null)
            {
                TimeText.Dispose();
                TimeText = null;
            }

            if (WebView != null)
            {
                WebView.Dispose();
                WebView = null;
            }
        }