Fixing EAR event edition.
EAR HID event now displays 'Press a key' if not valid.
5 using System.Collections.Generic;
6 using System.Runtime.Serialization;
11 public abstract class Event : Object
14 [AttributeObjectProperty
18 Description = "When enabled an event instance can be triggered."
21 public bool Enabled { get; set; } = true;
24 public List<Action> Actions = new List<Action>();
27 protected override void DoConstruct()
31 // TODO: Construct properties too
32 foreach (Action a in Actions)
41 /// Allows testing from generic edit dialog.
45 Console.WriteLine("Event test");
52 Console.WriteLine("Event triggered: " + Name);
53 foreach (Action action in Actions)
60 public override bool Equals(object obj)
62 //Default implementation assumes event are the same if types are the same
63 bool res= obj.GetType() == GetType();