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

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

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

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

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

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

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

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

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

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

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