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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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