Exemplo n.º 1
0
 void WebClient_GetMoreInfo_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
 {
     if (List_Online.Items[List_Song_Online.SelectedIndex].Stream == null)
     {
         List_Online.Items[List_Song_Online.SelectedIndex] = Reader_NCT.GetMoreSongInfo(e.Result, List_Online.Items[List_Song_Online.SelectedIndex]);
     }
     Init_Open(List_Online.Items[List_Song_Online.SelectedIndex]);
     Btn_Play_Click(null, null);
 }
Exemplo n.º 2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     mySong            = new Song();
     mySong.Image_Song = "";
     mySong.URL        = Edit_URL.Text;
     mySong            = ReadHTML.GetMoreSongInfo(mySong);
     Player.Source     = new Uri(mySong.URL, UriKind.Absolute);
     Player.Play();
     Text_NameSong.Text   = "Name Song: " + mySong.Name_Song;
     Text_NameArtist.Text = "Name Artist: " + mySong.Name_Artist;
 }
Exemplo n.º 3
0
 void Init_Value_Control(Song Item_Song)
 {
     if (Item_Song.Online == true)
     {
         Item_Song        = ReadHTML.GetMoreSongInfo(Item_Song);
         Item_Song.Online = false;
     }
     Text_TB.Text           = "";
     Slider_Time.Value      = 0;
     NameOfSongPlayingNow   = Item_Song.Name_Song;
     NameOfArtistPlayingNow = Item_Song.Name_Artist;
     if (Item_Song.Image_Song == null)
     {
         Image_NowPlaying = new System.Windows.Media.Imaging.BitmapImage(new Uri(Picture.NHAC_OFFLINE));
     }
     else
     {
         Image_NowPlaying = new System.Windows.Media.Imaging.BitmapImage(new Uri(Item_Song.Image_Song));
     }
     Lyric = Item_Song.Lyric_Song;
 }