コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (StarButton != null)
            {
                StarButton.Dispose();
                StarButton = null;
            }

            if (WatchButton != null)
            {
                WatchButton.Dispose();
                WatchButton = null;
            }
        }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (BottomBorderLeftConstraint != null)
            {
                BottomBorderLeftConstraint.Dispose();
                BottomBorderLeftConstraint = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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