Exemplo n.º 1
0
        private void OnPlaybackNext()
        {
            PlayRequest request = (PlayRequest)RequestFactory.CreateRequest(MessageType.Play);

            if (String.IsNullOrEmpty(_playlistForm.GoToNext()))
            {
                MessageBox.Show("Nothing to play. Check playlist", "Information");
                return;
            }

            OnPlaybackPlay();
        }
Exemplo n.º 2
0
        private void OnPlaybackNext()
        {
            PlayRequest request = (PlayRequest)RequestFactory.CreateRequest(MessageType.Play);

            if (string.IsNullOrEmpty(_playlistForm.GoToNext()))
            {
                MessageBox.Show("Playlist is empty. Nothing to play", "Information");
                return;
            }

            request.Tracks = _playlistForm.GetCurrent();

            _playerCommunicatorControl.SendRequest(request);

            // TODO set state based on response
            // set controls state
            _playbackControl.DisableSeeking();
            _playbackControl.PlaybackStarted(0);
        }