示例#1
0
        private void OnPlay(Guid guidOfTrackToPlay)
        {
            if (guidOfTrackToPlay == Guid.Empty)
            {
                throw new ArgumentNullException("guidOfTrackToPlay", "The play command has been triggered without specifying a track to play.");
            }

            _playbackService.PlayTrackInQueue(guidOfTrackToPlay);
        }