author | StephaneLenclud |
Thu, 18 Aug 2016 14:35:50 +0200 | |
changeset 238 | c92587ddabcd |
parent 231 | 4c706feaf706 |
child 239 | dd7770b97916 |
permissions | -rw-r--r-- |
1 //
4 using System;
5 using System.Collections.Generic;
6 using System.Runtime.Serialization;
7 using System.Threading;
9 namespace SharpLib.Ear
10 {
11 [DataContract]
12 public abstract class Action: Object
13 {
14 protected abstract void DoExecute();
16 /// <summary>
17 /// Allows testing from generic edit dialog.
18 /// </summary>
19 public void Test()
20 {
21 Console.WriteLine("Action test");
22 Execute();
23 }
25 public void Execute()
26 {
27 Console.WriteLine("Action executing: " + Brief());
28 DoExecute();
29 }
31 }
34 }