C# Class GuiLabs.Undo.Transaction

Inheritance: IAction, IDisposable
Afficher le fichier Open project: KirillOsenkov/Undo Class Usage Examples

Private Properties

Свойство Type Description
Transaction System

Méthodes publiques

Méthode Description
Add ( IAction actionToAppend ) : void
CanExecute ( ) : bool
CanUnExecute ( ) : bool
Commit ( ) : void
Create ( ActionManager actionManager ) : Transaction

By default, the actions are delayed and executed only after the top-level transaction commits.

Make sure to dispose of the transaction once you're done - it will actually call Commit for you

Create ( ActionManager actionManager, bool delayed ) : Transaction
Dispose ( ) : void
Execute ( ) : void
HasActions ( ) : bool
Remove ( IAction actionToCancel ) : void
Rollback ( ) : void
TryToMerge ( IAction followingAction ) : bool
UnExecute ( ) : void

Private Methods

Méthode Description
Transaction ( ActionManager actionManager, bool delayed ) : System

Method Details

Add() public méthode

public Add ( IAction actionToAppend ) : void
actionToAppend IAction
Résultat void

CanExecute() public méthode

public CanExecute ( ) : bool
Résultat bool

CanUnExecute() public méthode

public CanUnExecute ( ) : bool
Résultat bool

Commit() public méthode

public Commit ( ) : void
Résultat void

Create() public static méthode

By default, the actions are delayed and executed only after the top-level transaction commits.
Make sure to dispose of the transaction once you're done - it will actually call Commit for you
public static Create ( ActionManager actionManager ) : Transaction
actionManager ActionManager
Résultat Transaction

Create() public static méthode

public static Create ( ActionManager actionManager, bool delayed ) : Transaction
actionManager ActionManager
delayed bool
Résultat Transaction

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Execute() public méthode

public Execute ( ) : void
Résultat void

HasActions() public méthode

public HasActions ( ) : bool
Résultat bool

Remove() public méthode

public Remove ( IAction actionToCancel ) : void
actionToCancel IAction
Résultat void

Rollback() public méthode

public Rollback ( ) : void
Résultat void

TryToMerge() public méthode

public TryToMerge ( IAction followingAction ) : bool
followingAction IAction
Résultat bool

UnExecute() public méthode

public UnExecute ( ) : void
Résultat void