Пример #1
0
        void ReleaseDesignerOutlets()
        {
            if (DaysButton != null)
            {
                DaysButton.Dispose();
                DaysButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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