4 using System.Collections.Generic;
5 using System.Diagnostics;
7 using System.Runtime.Serialization;
9 using System.Threading.Tasks;
11 namespace SharpDisplayManager
14 [AttributeObject(Id = "Cec.InactiveSource", Name = "CEC Inactive Source", Description = "Set this CEC device as inactive source.")]
15 class ActionCecInactiveSource : SharpLib.Ear.Action
17 protected override void DoExecute()
19 if (Cec.Client.Static == null)
21 Trace.WriteLine("WARNING: No CEC client installed.");
25 Cec.Client.Static.Lib.SetInactiveView();