Line | |
---|
1 |
|
---|
2 | namespace Netron.Diagramming.Core {
|
---|
3 | /// <summary>
|
---|
4 | /// ICommand is an interface for undo/redo support that is
|
---|
5 | /// implemented by the <see cref="Command"/> class.
|
---|
6 | /// </summary>
|
---|
7 | public interface ICommand {
|
---|
8 | /// <summary>
|
---|
9 | /// Executes the action corresponding to an undo
|
---|
10 | /// </summary>
|
---|
11 | void Undo();
|
---|
12 | /// <summary>
|
---|
13 | /// Executes the actual action or equivalently the redo in case it had been undone
|
---|
14 | /// </summary>
|
---|
15 | void Redo();
|
---|
16 | /// <summary>
|
---|
17 | /// A description of the action
|
---|
18 | /// </summary>
|
---|
19 | /// <remarks>The text can be used in an undo list or undo stack description</remarks>
|
---|
20 | string Text { get; set; }
|
---|
21 | }
|
---|
22 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.