public void addMenu(MediaLibraryPlaylistMenu menu)
        {
            menu.setMediaLibrary(mediaLibrary);

            menu.Selected += RemoveMusic;

            menu.setPlaylist(playList);

            menus.add(menu);
        }
Exemple #2
0
 public static void removeFromPlaylist(MediaLibraryPlaylistMenu menu, List <Song> list)
 {
     list.RemoveAt(menu.CurrentSong);
 }
        public void RemoveMusic(object sender, EventArgs e)
        {
            MediaLibraryPlaylistMenu menu = sender as MediaLibraryPlaylistMenu;

            MediaLibraryFunctions.removeFromPlaylist(menu, playList);
        }