Removing JSON type converter from ear manager.
Using bindings for some application settings.
5 using System.Collections.Generic;
6 using System.Runtime.Serialization;
11 [KnownType("DerivedTypes")]
12 public abstract class Event
15 [AttributeObjectProperty
19 Description = "When enabled an event instance can be triggered."
22 public bool Enabled { get; set; }
25 public List<Action> Actions = new List<Action>();
29 //Get the name of this object attribute
30 get { return Utils.Reflection.GetAttribute<AttributeObject>(GetType()).Name; }
34 public string Description
36 //Get the description of this object attribute
37 get { return Utils.Reflection.GetAttribute<AttributeObject>(GetType()).Description; }
49 /// Allows testing from generic edit dialog.
53 Console.WriteLine("Event test");
60 Console.WriteLine("Event triggered: " + Name);
61 foreach (Action action in Actions)
68 /// So that data contract knows all our types.
70 /// <returns></returns>
71 private static IEnumerable<Type> DerivedTypes()
73 return SharpLib.Utils.Reflection.GetDerivedTypes<Event>();