16
|
1 // This file (Command.cs) is a part of the IBBoard library and is copyright 2009 IBBoard.
|
|
2 //
|
|
3 // The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license.
|
|
4
|
37
|
5 using System;
|
|
6
|
|
7 namespace IBBoard.Commands
|
|
8 {
|
|
9 /// <summary>
|
|
10 /// Summary description for Command.
|
|
11 /// </summary>
|
|
12 public abstract class Command
|
|
13 {
|
|
14 public Command()
|
|
15 {
|
|
16 }
|
|
17
|
|
18 public abstract bool CanExecute();
|
|
19 public abstract bool Execute();
|
|
20 public abstract void Undo();
|
|
21 public abstract void Redo();
|
|
22 public abstract string Name { get; }
|
|
23 public abstract string Description { get; }
|
|
24 public abstract string UndoDescription { get; }
|
|
25 }
|
|
26 }
|