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"); }
protected virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { if (_remote != null) { _remote.Dispose(); _remote = null; } } disposed = true; } }