C# Class GuiLabs.Undo.AbstractAction

Inheritance: IAction
Afficher le fichier Open project: KirillOsenkov/Undo

Méthodes publiques

Méthode Description
CanExecute ( ) : bool
CanUnExecute ( ) : bool
Execute ( ) : void
TryToMerge ( IAction followingAction ) : bool

If the last action can be joined with the followingAction, the following action isn't added to the Undo stack, but rather mixed together with the current one.

UnExecute ( ) : void

Méthodes protégées

Méthode Description
ExecuteCore ( ) : void

Override execute core to provide your logic that actually performs the action

UnExecuteCore ( ) : void

Override this to provide the logic that undoes the action

Method Details

CanExecute() public méthode

public CanExecute ( ) : bool
Résultat bool

CanUnExecute() public méthode

public CanUnExecute ( ) : bool
Résultat bool

Execute() public méthode

public Execute ( ) : void
Résultat void

ExecuteCore() protected abstract méthode

Override execute core to provide your logic that actually performs the action
protected abstract ExecuteCore ( ) : void
Résultat void

TryToMerge() public méthode

If the last action can be joined with the followingAction, the following action isn't added to the Undo stack, but rather mixed together with the current one.
public TryToMerge ( IAction followingAction ) : bool
followingAction IAction
Résultat bool

UnExecute() public méthode

public UnExecute ( ) : void
Résultat void

UnExecuteCore() protected abstract méthode

Override this to provide the logic that undoes the action
protected abstract UnExecuteCore ( ) : void
Résultat void