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

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

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

            if (LblTitle != null)
            {
                LblTitle.Dispose();
                LblTitle = null;
            }
        }
示例#2
0
        void ReleaseDesignerOutlets()
        {
            if (BtnAddToPlaylist != null)
            {
                BtnAddToPlaylist.Dispose();
                BtnAddToPlaylist = null;
            }

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

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

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

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