|
|
@@ -43,6 +43,7 @@ namespace MusicPlayer
|
|
|
form.ArtistListBox.Items.Add(a.naam);
|
|
|
|
|
|
}
|
|
|
+ this.api.GetGenres().ForEach(g => form.GenreListBox.Items.Add(g.name));
|
|
|
}
|
|
|
|
|
|
public void ArtistFilter(string artist)
|
|
|
@@ -54,6 +55,15 @@ namespace MusicPlayer
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ public void GenreFilter(string genre)
|
|
|
+ {
|
|
|
+ table.Clear();
|
|
|
+ api.GetSongsByGenre(genre).ForEach(s =>
|
|
|
+ {
|
|
|
+ table.Add(s);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
public void AlbumFilter(string album)
|
|
|
{
|
|
|
table.Clear();
|