Basis for action property edition support.
5 using System.Collections.Generic;
7 using System.Runtime.Serialization;
9 using System.Threading.Tasks;
11 namespace SharpDisplayManager
14 [AttributeAction(Id = "Cec.SendKepressTvPowerOff", Name = "CEC Send Keypress TV Power Off", Description = "Send Power Off keypress to your TV.")]
15 class ActionCecSendKeypressTvPowerOff : SharpLib.Ear.Action
17 public override void Execute()
19 if (Cec.Client.Static == null)
21 Console.WriteLine("WARNING: No CEC client installed.");
24 Cec.Client.Static.Lib.SendKeypress(CecLogicalAddress.Tv,CecUserControlCode.PowerOffFunction,true);