File: IAction.cs

package info (click to toggle)
quickroute-gps 2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 19,576 kB
  • sloc: cs: 74,488; makefile: 72; sh: 43
file content (12 lines) | stat: -rw-r--r-- 492 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
namespace QuickRoute.BusinessEntities.Actions
{
  /// <summary>
  /// Describes a user interface action that affects a session in some way. This is the base component for undo/redo handling. Actions are standalone objects that carry all 
  /// information inside themselves. However, to support undo/redo, they need to be propagated to the main application where they are stored in a stack.
  /// </summary>
  public interface IAction
  {
    void Execute();
    void Undo();
  }
}