Class UndoCommandTab
- Namespace
- AlphaFramework.Editor
- Assembly
- AlphaFramework.Editor.dll
A base class for all editor windows that have undo-functionality based on IUndoCommand logging (using the command pattern)
public class UndoCommandTab : UndoTab<IUndoCommand>, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
- Inheritance
-
UndoCommandTab
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
All changes to the content must be performed via the ExecuteCommand(IUndoCommand) interface to be handled by the undo-system
Constructors
UndoCommandTab()
Initializes a new instance of the UserControl class.
protected UndoCommandTab()
Methods
ExecuteCommand(IUndoCommand)
Executes a IUndoCommand using this tab's undo stack.
protected void ExecuteCommand(IUndoCommand command)
Parameters
command
IUndoCommand
ExecuteCommandSafe(IUndoCommand)
Executes a IUndoCommand and automatically displays message boxes for common exception types.
protected void ExecuteCommandSafe(IUndoCommand command)
Parameters
command
IUndoCommand
OnRedo()
Hook to redo the last undone change
protected override void OnRedo()
OnUndo()
Hook to undo the last change
protected override void OnUndo()