C# Class GuiLabs.Undo.Transaction

Inheritance: IAction, IDisposable
Exibir arquivo Open project: KirillOsenkov/Undo Class Usage Examples

Private Properties

Property Type Description
Transaction System

Public Methods

Method 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

Method Description
Transaction ( ActionManager actionManager, bool delayed ) : System

Method Details

Add() public method

public Add ( IAction actionToAppend ) : void
actionToAppend IAction
return void

CanExecute() public method

public CanExecute ( ) : bool
return bool

CanUnExecute() public method

public CanUnExecute ( ) : bool
return bool

Commit() public method

public Commit ( ) : void
return void

Create() public static method

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
return Transaction

Create() public static method

public static Create ( ActionManager actionManager, bool delayed ) : Transaction
actionManager ActionManager
delayed bool
return Transaction

Dispose() public method

public Dispose ( ) : void
return void

Execute() public method

public Execute ( ) : void
return void

HasActions() public method

public HasActions ( ) : bool
return bool

Remove() public method

public Remove ( IAction actionToCancel ) : void
actionToCancel IAction
return void

Rollback() public method

public Rollback ( ) : void
return void

TryToMerge() public method

public TryToMerge ( IAction followingAction ) : bool
followingAction IAction
return bool

UnExecute() public method

public UnExecute ( ) : void
return void