Beispiel #1
0
        //Method to show artist and their songs based on selection within SearchResults
        public void artistSelected(String name, List<Song> songs)
        {
            hideForms();

            artistView = new ArtistView(this.currentUser, this.musicPlayer);

            PlaylistModel pm = new PlaylistModel();
            List<Playlist> lp = pm.getPlaylistsForUser(currentUser.getUsername());
            artistView.setUsersPlaylists(lp);
            artistView.setupVariables(name, songs);
            artistView.createAlbums();

            artistView.TopLevel = false;
            artistView.Parent = this;
            artistView.FormBorderStyle = FormBorderStyle.None;

            picBoxBackground.Hide();

            artistView.Show();
        }
Beispiel #2
0
        private void cmdArtistSongs_Click(object sender, EventArgs e)
        {
            String artist = Microsoft.VisualBasic.Interaction.InputBox("Artist Name:");

            SongModel songModel = new SongModel();
            List<Song> songsForArtist = songModel.getSongsByArtist(artist);

            ArtistView artistView = new ArtistView(new User(), null);

            artistView.setupVariables(artist, songsForArtist);
            artistView.createAlbums();

            artistView.Show();
        }