Exemplo n.º 1
0
        void ReleaseDesignerOutlets()
        {
            if (DateLabel != null)
            {
                DateLabel.Dispose();
                DateLabel = null;
            }

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

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

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

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

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

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

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

            if (UsernameLabel != null)
            {
                UsernameLabel.Dispose();
                UsernameLabel = null;
            }
        }
Exemplo n.º 2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (TextField != null)
                {
                    //TextField.RemoveTarget(HandleTextField, UIControlEvent.EditingChanged);
                    TextField.InitTextBindHandle = null;
                    TextField.Dispose();
                    TextField = null;
                }

                ErrorMessageLabel?.Dispose();
                ErrorMessageLabel = null;
                _topLabel?.Dispose();
                _topLabel = null;
                SeparatorView?.Dispose();
                SeparatorView = null;
            }
            base.Dispose(disposing);
        }
        void ReleaseDesignerOutlets()
        {
            if (buttonBack != null)
            {
                buttonBack.Dispose();
                buttonBack = null;
            }

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

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

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

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

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