Пример #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);
 }