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.PowerOnTv", Name = "CEC Power On TV", Description = "Power on TVs on your CEC HDMI network.")]
14 class ActionCecPowerOnTv : 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.PowerOnDevices(CecLogicalAddress.Tv);