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

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

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

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

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

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

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

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