Exemple #1
0
        void ReleaseDesignerOutlets()
        {
            if (AlbumArtView != null)
            {
                AlbumArtView.Dispose();
                AlbumArtView = null;
            }

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

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

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

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

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

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

            if (SettingsButton != null)
            {
                SettingsButton.Dispose();
                SettingsButton = null;
            }
        }
Exemple #2
0
        void ReleaseDesignerOutlets()
        {
            if (ProgressBar != null)
            {
                ProgressBar.Dispose();
                ProgressBar = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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