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

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

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

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

            if (SpotifyButton != null)
            {
                SpotifyButton.Dispose();
                SpotifyButton = null;
            }
        }
Exemplo n.º 2
0
        public ErrorViewHolder(View itemView) : base(itemView)
        {
            // Locate and cache view references:
            ErrorTextView = itemView.FindViewById <TextView>(Resource.Id.notam_ErrorTextView);
            ErrorTextView.SetTextColor(new ApplyTheme().GetColor(DesiredColor.RedTextWarning));

            ErrorCardView = itemView.FindViewById <CardView>(Resource.Id.notam_ErrorMainCard);
            ErrorCardView.SetCardBackgroundColor(new ApplyTheme().GetColor(DesiredColor.LightYellowBackground));
        }
        void ReleaseDesignerOutlets()
        {
            if (SelectionLabelTrailingConstraint != null)
            {
                SelectionLabelTrailingConstraint.Dispose();
                SelectionLabelTrailingConstraint = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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