Пример #1
0
        public VLController()
        {
            _remote = new Vlcmote();

            _actionMapping = new Dictionary<JukeboxCommand, string>();
            _actionMapping.Add(JukeboxCommand.Play, "Play");
            _actionMapping.Add(JukeboxCommand.Pause, "Pause");
            _actionMapping.Add(JukeboxCommand.NextTrack, "Next");
            _actionMapping.Add(JukeboxCommand.PreviousTrack, "Previous");
            _actionMapping.Add(JukeboxCommand.Toggle, "Toggle");
            _actionMapping.Add(JukeboxCommand.PlayAfterPaused, "Play");
        }
Пример #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             if (_remote != null)
             {
                 _remote.Dispose();
                 _remote = null;
             }
         }
         disposed = true;
     }
 }