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

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

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

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

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

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

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

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

            if (ProfileButton != null)
            {
                ProfileButton.Dispose();
                ProfileButton = null;
            }
        }
Ejemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (CaptionText != null)
            {
                CaptionText.Dispose();
                CaptionText = null;
            }

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

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

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

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

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