| | |
| | | A31MusicModel.Current.CurrentPlayMusicInfoList = new List<MusicInfo>(); |
| | | return; |
| | | } |
| | | var playString = SendMethod.GetCurrentPlayList(); |
| | | var playString = SendMethod.GetCurrentPlayList(A31MusicModel.Current); |
| | | A31MusicModel.Current.CurrentPlayMusicInfoList = new List<MusicInfo>(); |
| | | var se = System.Security.SecurityElement.FromString(playString); |
| | | while (se.Children != null) |
| | |
| | | EventHandler<int> progressClick = (sender, e) => |
| | | { |
| | | playView.volValueBtn.Text = playView.volSeekBar.Progress + "%"; |
| | | A31MusicModel.Current.ControlVolume(playView.volSeekBar.Progress); |
| | | SendMethod.ControlVolume(playView.volSeekBar.Progress,A31MusicModel.Current); |
| | | A31MusicModel.Current.A31PlayStatus.vol = playView.volSeekBar.Progress.ToString(); |
| | | }; |
| | | playView.volSeekBar.OnProgressChangedEvent += progressClick; |
| | |
| | | playView.prevBtn.MouseDownEventHandler += (sender, e) => |
| | | { |
| | | playView.prevBtn.IsSelected = true; |
| | | SendMethod.Previous(); |
| | | SendMethod.Previous(A31MusicModel.Current); |
| | | }; |
| | | playView.prevBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | |
| | | if (playView.playBtn.IsSelected) |
| | | { |
| | | playView.playBtn.IsSelected = false; |
| | | SendMethod.Pause(); |
| | | SendMethod.Pause(A31MusicModel.Current); |
| | | A31MusicModel.Current.A31PlayStatus.status = "pause"; |
| | | } |
| | | else |
| | | { |
| | | playView.playBtn.IsSelected = true; |
| | | SendMethod.Play(); |
| | | SendMethod.Play(A31MusicModel.Current); |
| | | A31MusicModel.Current.A31PlayStatus.status = "play"; |
| | | } |
| | | }; |
| | |
| | | playView.nextBtn.MouseDownEventHandler += (sender, e) => |
| | | { |
| | | playView.nextBtn.IsSelected = true; |
| | | SendMethod.Next(); |
| | | SendMethod.Next(A31MusicModel.Current); |
| | | }; |
| | | playView.nextBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | |
| | | return; |
| | | } |
| | | playView.volSeekBar.Progress = volume; |
| | | A31MusicModel.Current.ControlVolume(playView.volSeekBar.Progress); |
| | | SendMethod.ControlVolume(playView.volSeekBar.Progress,A31MusicModel.Current); |
| | | A31MusicModel.Current.A31PlayStatus.vol = playView.volSeekBar.Progress.ToString(); |
| | | }; |
| | | |
| | |
| | | A31MusicModel.Current.A31PlayStatus.Title = songBtn.Text; |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | SendMethod.ListMusicPlay(playListName, clickBtn.Tag); |
| | | SendMethod.ListMusicPlay(playListName, clickBtn.Tag,A31MusicModel.Current); |
| | | }); |
| | | }); |
| | | }); |