CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Core.IUndoableObject Interface Reference

Defines the methods required to participate in n-level undo within the CSLA .NET framework. More...

Inheritance diagram for Csla.Core.IUndoableObject:
Csla.BusinessBindingListBase< T, C > Csla.BusinessListBase< T, C > Csla.Core.FieldManager.FieldDataManager Csla.Core.IEditableBusinessObject Csla.Core.UndoableBase Csla.IBusinessListBase< C > Csla.Core.BusinessBase Csla.IBusinessBase Csla.Core.BusinessBase Csla.BusinessListBase< T, C > Csla.BusinessBase< T > Csla.BusinessBase< T > Csla.BusinessBase< T > Csla.Validation.BusinessBase< T > Csla.Validation.BusinessBase< T > Csla.Validation.BusinessBase< T >

Public Member Functions

void CopyState (int parentEditLevel, bool parentBindingEdit)
 Copies the state of the object and places the copy onto the state stack. More...
 
void UndoChanges (int parentEditLevel, bool parentBindingEdit)
 Restores the object's state to the most recently copied values from the state stack. More...
 
void AcceptChanges (int parentEditLevel, bool parentBindingEdit)
 Accepts any changes made to the object since the last state copy was made. More...
 

Properties

int EditLevel [get]
 Gets the current edit level of the object. More...
 

Detailed Description

Defines the methods required to participate in n-level undo within the CSLA .NET framework.

This interface is used by Csla.Core.UndoableBase to initiate begin, cancel and apply edit operations.

Definition at line 18 of file IUndoableObject.cs.

Member Function Documentation

◆ AcceptChanges()

void Csla.Core.IUndoableObject.AcceptChanges ( int  parentEditLevel,
bool  parentBindingEdit 
)

Accepts any changes made to the object since the last state copy was made.

The most recent state copy is removed from the state stack and discarded, thus committing any changes made to the object's state.

Parameters
parentEditLevelParent object's edit level.
parentBindingEditIndicates whether parent is in edit mode due to data binding.

◆ CopyState()

void Csla.Core.IUndoableObject.CopyState ( int  parentEditLevel,
bool  parentBindingEdit 
)

Copies the state of the object and places the copy onto the state stack.

Parameters
parentEditLevelParent object's edit level.
parentBindingEditIndicates whether parent is in edit mode due to data binding.

◆ UndoChanges()

void Csla.Core.IUndoableObject.UndoChanges ( int  parentEditLevel,
bool  parentBindingEdit 
)

Restores the object's state to the most recently copied values from the state stack.

Restores the state of the object to its previous value by taking the data out of the stack and restoring it into the fields of the object.

Parameters
parentEditLevelParent object's edit level.
parentBindingEditIndicates whether parent is in edit mode due to data binding.

Property Documentation

◆ EditLevel

int Csla.Core.IUndoableObject.EditLevel
get

Gets the current edit level of the object.

Definition at line 23 of file IUndoableObject.cs.