예제 #1
0
 private void HandleDeviceCommand(DapSource source, DeviceCommandAction action)
 {
     if ((action & DeviceCommandAction.Activate) != 0)
     {
         ServiceManager.SourceManager.SetActiveSource(source);
     }
 }
예제 #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();
                }
            }
        }
예제 #3
0
 private void HandleDeviceCommand (DapSource source, DeviceCommandAction action)
 {
     if ((action & DeviceCommandAction.Activate) != 0) {
         ServiceManager.SourceManager.SetActiveSource (source);
     }
 }
예제 #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 ();
                }
            }
        }
예제 #5
0
 private DeviceCommand(DeviceCommandAction action)
 {
     this.action = action;
 }