Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Core/Interfaces/ICommand.cs @ 2768

Last change on this file since 2768 was 2768, checked in by mkommend, 14 years ago

added solution folders and sources for the netron library (ticket #867)

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