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/UndoRedo/UndoInfo.cs @ 4068

Last change on this file since 4068 was 4068, checked in by swagner, 14 years ago

Sorted usings and removed unused usings in entire solution (#1094)

File size: 917 bytes
Line 
1
2namespace Netron.Diagramming.Core {
3  /// <summary>
4  /// CommandInfo is a class that is used as the
5  /// data type in the undo list and redo stack. It just stores
6  /// a reference to a command and an undo handler.
7  /// </summary>
8  public class CommandInfo {
9    private ICommand mCommand;
10    private IUndoSupport mHandler;
11
12    /// <summary>
13    /// Gets or sets the command.
14    /// </summary>
15    /// <value>The command.</value>
16    public ICommand Command {
17      get { return mCommand; }
18      set { mCommand = value; }
19    }
20
21    /// <summary>
22    /// The handler or parent of the undo command
23    /// </summary>
24    public IUndoSupport Handler {
25      get { return mHandler; }
26      set { mHandler = value; }
27    }
28
29    /// <summary>
30    /// Initializes a new instance of the <see cref="T:CommandInfo"/> class.
31    /// </summary>
32    public CommandInfo() {
33    }
34  }
35}
Note: See TracBrowser for help on using the repository browser.