Ejemplo n.º 1
0
        void ReleaseDesignerOutlets()
        {
            if (FaceImageView != null)
            {
                FaceImageView.Dispose();
                FaceImageView = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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