Esempio n. 1
0
 private void HandleDeviceCommand(DapSource source, DeviceCommandAction action)
 {
     if ((action & DeviceCommandAction.Activate) != 0)
     {
         ServiceManager.SourceManager.SetActiveSource(source);
     }
 }
Esempio n. 2
0
        private void HandleDeviceCommand(AudioCdSource source, DeviceCommandAction action)
        {
            if ((action & DeviceCommandAction.Activate) != 0)
            {
                ServiceManager.SourceManager.SetActiveSource(source);
            }

            if ((action & DeviceCommandAction.Play) != 0)
            {
                ServiceManager.PlaybackController.NextSource = source;
                if (!ServiceManager.PlayerEngine.IsPlaying())
                {
                    ServiceManager.PlaybackController.Next();
                }
            }
        }
Esempio n. 3
0
 private void HandleDeviceCommand (DapSource source, DeviceCommandAction action)
 {
     if ((action & DeviceCommandAction.Activate) != 0) {
         ServiceManager.SourceManager.SetActiveSource (source);
     }
 }
Esempio n. 4
0
        protected virtual void HandleDeviceCommand(DiscSource source, DeviceCommandAction action)
        {
            if ((action & DeviceCommandAction.Activate) != 0) {
                ServiceManager.SourceManager.SetActiveSource (source);
            }

            if ((action & DeviceCommandAction.Play) != 0) {
                ServiceManager.PlaybackController.NextSource = source;
                if (!ServiceManager.PlayerEngine.IsPlaying ()) {
                    ServiceManager.PlaybackController.Next ();
                }
            }
        }
Esempio n. 5
0
 private DeviceCommand(DeviceCommandAction action)
 {
     this.action = action;
 }