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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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