Пример #1
0
        public void PostControl(PlayerControl control)
        {
            Trace.WriteLine("PostControl: " + control);
            switch (control.Action)
            {
            case PlayerControlAction.Next:
                _player.PlayNextSong();
                break;

            case PlayerControlAction.Stop:
                _player.Stop();
                break;

            case PlayerControlAction.Pause:
                _player.Pause();
                break;
            }
        }