async private void ht_FileWatchEvent(object sender, CompleteEventArgs e)
        {
            result.Clear();
            await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
            {
                LBResult.DataContext = null;
            });

            list = LRCSer.GecimeLyricDeserializer(e.Node);
            if (list.Result.Count() == 0)
            {
                await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
                {
                    JMessBox jb = new JMessBox("没有结果");
                    jb.Show();
                });
            }
            else
            {
                foreach (var item in list.Result)
                {
                    //执行对每个artistid的查询
                    DoHttpWebRequestArtist(item.artist_id);
                }
            }
        }
Beispiel #2
0
 public static Gecime_Lyric GecimeLyricDeserializer(string jsonStr)
 {
     Gecime_Lyric result = new Gecime_Lyric();
     if (!string.IsNullOrEmpty(jsonStr))
     {
         result = JsonConvert.DeserializeObject<Gecime_Lyric>(jsonStr);
         return result;
     }
     else
     {
         return null;
     }
 }