| | |
| | | }); |
| | | }; |
| | | ///在线电台事件 |
| | | 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) => |
| | |
| | | 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"; |