From 258d1675d02d3610cb302514fb5c86ab68ee6571 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 25 五月 2020 17:51:13 +0800
Subject: [PATCH] 2020-05-25-1

---
 HDL_ON/UI/Music/A31MusicSourcePage.cs |   40 +++++++++++++++++++++++++++++++++-------
 1 files changed, 33 insertions(+), 7 deletions(-)

diff --git a/HDL_ON/UI/Music/A31MusicSourcePage.cs b/HDL_ON/UI/Music/A31MusicSourcePage.cs
index 86d9d12..8672b69 100644
--- a/HDL_ON/UI/Music/A31MusicSourcePage.cs
+++ b/HDL_ON/UI/Music/A31MusicSourcePage.cs
@@ -188,8 +188,12 @@
 
             };
             ///鎴戠殑鍠滅埍浜嬩欢
-            myLoveView.clickBtn.MouseUpEventHandler += (sender, e) => {
-
+            myLoveView.clickBtn.MouseUpEventHandler += (sender, e) =>
+            {
+                A31LoveList a31LoveList = new A31LoveList();
+                MainPage.BasePageView.AddChidren(a31LoveList);
+                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                a31LoveList.Show();
             };
             ///鎴戠殑鍒楄〃浜嬩欢
             myListView.clickBtn.MouseUpEventHandler += (sender, e) =>
@@ -200,8 +204,13 @@
                 MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
             };
             ///鏈湴闊充箰浜嬩欢
-            localMusicSourceView.clickBtn.MouseUpEventHandler += (sender, e) => {
-
+            localMusicSourceView.clickBtn.MouseUpEventHandler += (sender, e) =>
+            {
+                A31LocalMusicList a31LocalMusicList = new A31LocalMusicList();
+                MainPage.BasePageView.AddChidren(a31LocalMusicList);
+                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                a31LocalMusicList.Show();
+                a31LocalMusicList.UpdateSelectedMusic();
             };
             ///USB浜嬩欢
             usbSourceView.clickBtn.MouseUpEventHandler += (sender, e) =>
@@ -239,8 +248,23 @@
                 });
             };
             ///鍦ㄧ嚎鐢靛彴浜嬩欢
-            radioSourceView.clickBtn.MouseUpEventHandler += (sender, e) => {
-
+            radioSourceView.clickBtn.MouseUpEventHandler += (sender, e) =>
+            {
+                Loading loading = new Loading();
+                this.AddChidren(loading);
+                loading.Start();
+                System.Threading.Tasks.Task.Run(() =>
+                {
+                    var radioList = SendMethod.ReadRadioList("http://opml.radiotime.com/Browse.ashx?partnerId=yvcOjvJP");
+                    Application.RunOnMainThread(() =>
+                    {
+                        loading.Hide();
+                        A31Radio a31Radio = new A31Radio();
+                        MainPage.BasePageView.AddChidren(a31Radio);
+                        MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                        a31Radio.Show(radioList);
+                    });
+                });
             };
             ///QQ闊充箰浜嬩欢
             qqMusicSourceView.clickBtn.MouseUpEventHandler += (sender, e) =>
@@ -253,14 +277,16 @@
                 CommonClass.OpenApp(str);
             };
             ///钃濈墮浜嬩欢
-            bluetoothNameView.clickBtn.MouseUpEventHandler += (sender, e) =>
+            bluetoothSourceView.clickBtn.MouseUpEventHandler += (sender, e) =>
             {
+                this.RemoveFromParent();
                 string url = "http://" + A31MusicModel.Current.IPAddress + "/httpapi.asp?command=setPlayerCmd:switchmode:bluetooth";
                 SendMethod.SendCommand(url);
             };
             ///绾胯矾杈撳叆浜嬩欢
             lineSourceView.clickBtn.MouseUpEventHandler += (sender, e) =>
             {
+                this.RemoveFromParent();
                 string url = "http://" + A31MusicModel.Current.IPAddress + "/httpapi.asp?command=setPlayerCmd:switchmode:line-in";
                 SendMethod.SendCommand(url);
             };

--
Gitblit v1.8.0