Exemplo n.º 1
0
        void Get_List_Song_From_Playlist(int i)
        {
            Thread thread = new Thread(delegate()
            {
                List_Collection.List_Song_Playlist = ReadHTML.LoadSongFromPlaylistSelected(List_Collection.List_Playlist_Online[i]);
            });

            thread.Start();
            thread.Join();
        }
Exemplo n.º 2
0
        private void List_Playlist_Online_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            BeginWait("Searching List Song in Playlist . . .");
            List_Song_Playlist_Online.Items.Clear();
            int    index  = List_Playlist_Online.SelectedIndex;
            Thread thread = new Thread(delegate()
            {
                List_Collection.List_Song_Playlist = ReadHTML.LoadSongFromPlaylistSelected(List_Collection.List_Playlist_Online[index]);
            });

            thread.Start();
            thread.Join();
            for (int i = 0; i < List_Collection.List_Song_Playlist.Count; i++)
            {
                ListViewItem lv = new ListViewItem();
                lv.Content = List_Collection.List_Song_Playlist[i].Name_Song;
                List_Song_Playlist_Online.Items.Add(lv);
            }
        }