예제 #1
0
 private void add_Playlist(MediaContent content)
 {
     _PlaylistList.Add(content._Titre);
     if (global == true)
     {
         librarylist.Add(content);
         _LibraryList = CollectionViewSource.GetDefaultView(librarylist);
         _LibraryList.Refresh();
     }
 }
예제 #2
0
        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();
        }
예제 #3
0
 private void add_libraryList(MediaContent content)
 {
     librarylist.Add(content);
     _LibraryList = CollectionViewSource.GetDefaultView(librarylist);
     _LibraryList.Refresh();
 }
예제 #4
0
 public void add_content(MediaContent item)
 {
     add_libraryList(item);
 }