public NowPlayingViewModel() { SongList = UpNextListModel.UpNextList; UpNextListModel.UpNextListChange += UpNextListModel_UpNextListChange; SelectAudio = new RelayCommand <object>((p) => { return(true); }, (p) => { //MessageBox.Show(p.ToString()); }); ShuffleCommand = new RelayCommand <object>((p) => { return(true); }, (p) => { IsShuffle = !IsShuffle; NowPlayingSong.IsShuffle = IsShuffle; }); RemoveSongCommand = new RelayCommand <object>((p) => { return(true); }, (p) => { SongModel songRemove = p as SongModel; UpNextListModel.RemoveSongOutOfUpNextList(songRemove); }); ChoseMusicToPlay = new RelayCommand <object>((p) => { return(true); }, (p) => { if (UpNextListModel.IsEditingLyric == true) { return; } SongModel songToPlaying = p as SongModel; UpNextListModel.GoToSongInPlayingQueue(songToPlaying); }); }
public void PlayNowRequest(int index) { SongModel requestedSong = currentSongList[index]; UpNextListModel.AddSongToUpNextListAndPlay(requestedSong); }
public void AddToPlayingQueueRequest(int index) { UpNextListModel.AddSongToUpNextList(currentSongList[index]); }
public void PlayAllSongRequest() { UpNextListModel.PlayAllSongList(MusicInPlaylistControl.CurrentSongList); }