SharpLibEar/Event.cs
changeset 238 c92587ddabcd
parent 237 1a1c2ae3a29c
child 243 cc2251d065db
     1.1 --- a/SharpLibEar/Event.cs	Wed Aug 17 16:39:36 2016 +0200
     1.2 +++ b/SharpLibEar/Event.cs	Thu Aug 18 14:35:50 2016 +0200
     1.3 @@ -8,8 +8,7 @@
     1.4  namespace SharpLib.Ear
     1.5  {
     1.6      [DataContract]
     1.7 -    [KnownType("DerivedTypes")]
     1.8 -    public abstract class Event
     1.9 +    public abstract class Event : Object
    1.10      {
    1.11          [DataMember]
    1.12          [AttributeObjectProperty
    1.13 @@ -24,24 +23,7 @@
    1.14          [DataMember]
    1.15          public List<Action> Actions = new List<Action>();
    1.16  
    1.17 -        public string Name
    1.18 -        {
    1.19 -            //Get the name of this object attribute
    1.20 -            get { return Utils.Reflection.GetAttribute<AttributeObject>(GetType()).Name; }
    1.21 -            private set { }
    1.22 -        }
    1.23  
    1.24 -        public string Description
    1.25 -        {
    1.26 -            //Get the description of this object attribute
    1.27 -            get { return Utils.Reflection.GetAttribute<AttributeObject>(GetType()).Description; }
    1.28 -            private set { }
    1.29 -        }
    1.30 -
    1.31 -        public virtual string Brief()
    1.32 -        {
    1.33 -            return Name;
    1.34 -        }
    1.35  
    1.36          protected Event()
    1.37          {
    1.38 @@ -68,15 +50,6 @@
    1.39              }
    1.40          }
    1.41  
    1.42 -        /// <summary>
    1.43 -        /// So that data contract knows all our types.
    1.44 -        /// </summary>
    1.45 -        /// <returns></returns>
    1.46 -        private static IEnumerable<Type> DerivedTypes()
    1.47 -        {
    1.48 -            return SharpLib.Utils.Reflection.GetDerivedTypes<Event>();
    1.49 -        }
    1.50 -
    1.51          //
    1.52          public override bool Equals(object obj)
    1.53          {