예제 #1
0
 /// <summary>
 /// 发送歌词请求
 /// </summary>
 public bool DoHttpWebRequest()
 {
     if (!string.IsNullOrEmpty(this.TBSongName.Text))
     {
         HttpHelper ht = new HttpHelper();
         string keyWord01 = this.TBSongName.Text;
         string keyWord02 = string.IsNullOrEmpty(this.TBArtistName.Text) ? "" : "/" + this.TBArtistName.Text;
         string url = "http://geci.me/api/lyric/" + keyWord01 + keyWord02;
         ht.CreatePostHttpResponse(url);
         ht.FileWatchEvent += ht_FileWatchEvent;
         return true;
     }
     else
     {
         return false;
     }
 }
예제 #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string lrcStr = (sender as Button).DataContext.ToString(); 
            HttpHelper ht = new HttpHelper();
            ht.CreatePostHttpResponse(lrcStr);
            ht.FileWatchEvent += ht_FileWatchEvent2;

        }
예제 #3
0
 public void DoHttpWebRequestArtist(int artistId)
 {
     HttpHelper ht = new HttpHelper();
     string url = "http://geci.me/api/artist/" + artistId.ToString();
     ht.CreatePostHttpResponse(url);
     ht.FileWatchEvent += ht_FileWatchEvent3;
 }