예제 #1
0
        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);
            });
        }
예제 #2
0
        public void PlayNowRequest(int index)
        {
            SongModel requestedSong = currentSongList[index];

            UpNextListModel.AddSongToUpNextListAndPlay(requestedSong);
        }
예제 #3
0
 public void AddToPlayingQueueRequest(int index)
 {
     UpNextListModel.AddSongToUpNextList(currentSongList[index]);
 }
예제 #4
0
 public void PlayAllSongRequest()
 {
     UpNextListModel.PlayAllSongList(MusicInPlaylistControl.CurrentSongList);
 }