| | |
| | | areaText.fLayout.Y = bluetoothNameView.fLayout.Bottom; |
| | | areaText.FrameLayoutView(fL1, false); |
| | | areaText.nextLevelBtn.X = Application.GetRealWidth(339); |
| | | areaText.nextLevelBtn.Y = Application.GetRealHeight(17); |
| | | areaText.nextLevelBtn.Width = Application.GetMinRealAverage(16); |
| | | areaText.nextLevelBtn.Height = Application.GetMinRealAverage(16); |
| | | areaText.nextLevelBtn.UnSelectedImagePath = "MusicIcon/sourceNetx.png"; |
| | |
| | | |
| | | }; |
| | | ///我的喜爱事件 |
| | | 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(); |
| | | a31LoveList.UpdateSelectedFile(); |
| | | }; |
| | | ///我的列表事件 |
| | | myListView.clickBtn.MouseUpEventHandler += (sender, e) => { |
| | | |
| | | myListView.clickBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | A31MyList a31MyList = new A31MyList(); |
| | | MainPage.BasePageView.AddChidren(a31MyList); |
| | | a31MyList.Show(); |
| | | a31MyList.UpdateSelectedFile(); |
| | | 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) => |
| | | { |
| | | USBMusicList usbMusic = new USBMusicList(); |
| | | A31USBMusicList usbMusic = new A31USBMusicList(); |
| | | MainPage.BasePageView.AddChidren(usbMusic); |
| | | usbMusic.UIView(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | |
| | | if (A31MusicModel.Current.USBList.Count == 0) |
| | | { |
| | | //进来读一次(注意:播放地址可能会改变,导致播放不了音乐;解决:进来都去去读取最新数据) |
| | | var list = SendMethod.GetUsbList(); |
| | | var list = SendMethod.GetUsbList(A31MusicModel.Current); |
| | | A31MusicModel.Current.USBList.AddRange(list); |
| | | } |
| | | } |
| | |
| | | }); |
| | | }; |
| | | ///在线电台事件 |
| | | 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"; |
| | | 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); |
| | | }; |