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;
            }
        }
Beispiel #2
0
        void ReleaseDesignerOutlets()
        {
            if (GalleryCollectionView != null)
            {
                GalleryCollectionView.Dispose();
                GalleryCollectionView = null;
            }

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