Adding test action button to edit action form.
Action.DoExecute now protected.
4 using System.Collections.Generic;
6 using System.Runtime.Serialization;
8 using System.Threading.Tasks;
10 namespace SharpDisplayManager
13 [AttributeAction(Id = "Cec.Open", Name = "CEC Open", Description = "Open CEC connection.")]
14 class ActionCecOpen : SharpLib.Ear.Action
16 protected override void DoExecute()
18 if (Cec.Client.Static == null)
20 Console.WriteLine("WARNING: No CEC client installed.");
24 Cec.Client.Static.Open(1000);