示例#1
0
        private PictureBox AddPictureTrack(ref int inc, SpotifyTrack items)
        {
            inc += 100;
            PictureBox picture = new PictureBox();

            picture.Visible  = true;
            picture.SizeMode = PictureBoxSizeMode.Zoom;
            picture.Location = new Point(400, SArtist.Location.Y + inc - 50);
            picture.Size     = new Size(100, 100);
            Controls.Add(picture);
            picture.Load(items.imageAlbum);
            return(picture);
        }
示例#2
0
        private ListBox AddInfoTrack(ref int inc, SpotifyTrack items, PictureBox picture)
        {
            inc += 0;
            ListBox Info = new ListBox();

            Info.Visible  = true;
            Info.Location = new Point(500, picture.Location.Y);
            Info.Size     = new Size(200, 60);
            Controls.Add(Info);
            Info.Items.Add("Name Song: " + items.nameSong);
            Info.Items.Add("Name Artist: " + items.nameArtist);
            Info.Items.Add("Name Album: " + items.nameAlbum);
            Info.Items.Add("Popularity: " + items.popularity);
            Info.Items.Add("Duration:" + items.duration_ms);
            return(Info);
        }