Example #1
0
        private void Search(string songname)
        {
            Songs = new List <Song>();
            Songs = h.GetList(h.getJsonText(k.list(songname.Trim())));

            LabelLayout(Songs);
        }
Example #2
0
        private void playmusic(string str)
        {
            if (str == "")
            {
                //musicplay.URL = @"";
            }
            else
            {
                Songs = new List <Song>();
                Songs = h.GetList(h.getJsonText(k.list(str)));

                if (Songs.Count > 0)
                {
                    Song   s        = Songs[0];
                    String url      = k.getinfo(s.Hash);
                    String JsonText = h.getJsonText(url);
                    String src      = h.getUrl(JsonText);
                    axPlayer1.Open(src);
                }
            }
        }