Basis for action property edition support.
4 using System.Collections.Generic;
6 using System.Runtime.Serialization;
8 using System.Threading.Tasks;
10 namespace SharpDisplayManager
13 [AttributeAction(Id = "Cec.ActiveSource", Name = "CEC Active Source", Description = "Set this CEC device as active source.")]
14 class ActionCecActiveSource : SharpLib.Ear.Action
16 public override void Execute()
18 if (Cec.Client.Static == null)
20 Console.WriteLine("WARNING: No CEC client installed.");
23 Cec.Client.Static.Lib.SetActiveSource(CecDeviceType.PlaybackDevice);