1.1 --- a/SharpLibEar/Action.cs Sun Jul 31 12:03:52 2016 +0200
1.2 +++ b/SharpLibEar/Action.cs Fri Aug 12 20:25:05 2016 +0200
1.3 @@ -14,6 +14,15 @@
1.4 {
1.5 protected abstract void DoExecute();
1.6
1.7 + /// <summary>
1.8 + /// Allows testing from generic edit dialog.
1.9 + /// </summary>
1.10 + public void Test()
1.11 + {
1.12 + Console.WriteLine("Action test");
1.13 + Execute();
1.14 + }
1.15 +
1.16 public void Execute()
1.17 {
1.18 Console.WriteLine("Action executing: " + Brief());
1.19 @@ -22,7 +31,7 @@
1.20
1.21 public string Name {
1.22 //Get the name of this object action attribute
1.23 - get { return Utils.Reflection.GetAttribute<AttributeAction>(GetType()).Name; }
1.24 + get { return Utils.Reflection.GetAttribute<AttributeObject>(GetType()).Name; }
1.25 private set { }
1.26 }
1.27
1.28 @@ -34,7 +43,7 @@
1.29 public int CompareTo(object obj)
1.30 {
1.31 //Sort by action name
1.32 - return Utils.Reflection.GetAttribute<AttributeAction>(GetType()).Name.CompareTo(obj.GetType());
1.33 + return Utils.Reflection.GetAttribute<AttributeObject>(GetType()).Name.CompareTo(obj.GetType());
1.34 }
1.35
1.36 private static IEnumerable<Type> DerivedTypes()