Exemplo n.º 1
0
        private PictureBox AddPictureArtist(ref int inc, SpotifyArtist items)
        {
            inc += 100;
            PictureBox picture = new PictureBox();

            picture.Visible  = true;
            picture.SizeMode = PictureBoxSizeMode.Zoom;
            picture.Location = new Point(SArtist.Location.X, SArtist.Location.Y + inc - 50);
            picture.Size     = new Size(100, 100);
            Controls.Add(picture);
            picture.Load(items.Image);
            return(picture);
        }
Exemplo n.º 2
0
        private ListBox AddInfoArtist(ref int inc, SpotifyArtist items, PictureBox picture)
        {
            inc += 0;
            ListBox Info = new ListBox();

            Info.Visible  = true;
            Info.Location = new Point(picture.Location.X + 100, picture.Location.Y);
            Info.Size     = new Size(200, 60);
            Controls.Add(Info);
            Info.Items.Add("Name: " + items.Name);
            Info.Items.Add("Followers: " + items.Followers);
            Info.Items.Add("Popularity: " + items.Popularity);
            Info.Items.Add("ID: " + items.ID);
            Info.Items.Add("Genre:" + items.Genres);
            return(Info);
        }