示例#1
0
        void ReleaseDesignerOutlets()
        {
            if (BackgroundView != null)
            {
                BackgroundView.Dispose();
                BackgroundView = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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