Пример #1
0
 private void AddPlaylistSources()
 {
     foreach (DAAP.Playlist pl in database.Playlists)
     {
         DaapPlaylistSource source = new DaapPlaylistSource(pl, this);
         ThreadAssist.ProxyToMain(delegate {
             if (source.Count == 0)
             {
                 source.Unmap();
             }
             else
             {
                 AddChildSource(source);
             }
         });
     }
 }
Пример #2
0
 private void AddPlaylistSources()
 {
     foreach (DAAP.Playlist pl in database.Playlists) {
         DaapPlaylistSource source = new DaapPlaylistSource (pl, this);
         ThreadAssist.ProxyToMain (delegate {
             if (source.Count == 0) {
                 source.Unmap ();
             } else {
                 AddChildSource (source);
             }
         });
     }
 }