Exemplo n.º 1
0
        void HandleTypeButtonClicked(object sender, EventArgs e)
        {
            TypeTab newTab = (TypeTab)((GradientButton)sender).Data;

            if (newTab != _SelectedTab)
            {
                _SelectedTab = newTab;

                switch (_SelectedTab)
                {
                case TypeTab.MeleeTab:
                    SetupMeleeTab();
                    break;

                case TypeTab.RangedTab:
                    SetupRangedTab();
                    break;
                }

                SetupAttackViews();

                MeleeButton.StyleTab(_SelectedTab == TypeTab.MeleeTab);
                RangedButton.StyleTab(_SelectedTab == TypeTab.RangedTab);
                NaturalButton.StyleTab(_SelectedTab == TypeTab.NaturalTab);
            }
        }
Exemplo n.º 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;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (OKButton != null)
            {
                OKButton.Dispose();
                OKButton = null;
            }

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

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

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

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

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

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

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

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

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