private void add_Playlist(MediaContent content) { _PlaylistList.Add(content._Titre); if (global == true) { librarylist.Add(content); _LibraryList = CollectionViewSource.GetDefaultView(librarylist); _LibraryList.Refresh(); } }
public void create_Playlist(String name, List<MediaContent> list) { MediaContent new_playlist = new MediaContent(name); save_playlist(name, list); foreach (String item in _PlaylistList) { if (item == name) return; } add_Playlist(new_playlist); save_all_playlist(); }
private void add_libraryList(MediaContent content) { librarylist.Add(content); _LibraryList = CollectionViewSource.GetDefaultView(librarylist); _LibraryList.Refresh(); }
public void add_content(MediaContent item) { add_libraryList(item); }