Defines the methods required to participate in n-level undo within the CSLA .NET framework. More...
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... | |
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.
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.
parentEditLevel | Parent object's edit level. |
parentBindingEdit | Indicates whether parent is in edit mode due to data binding. |
void Csla.Core.IUndoableObject.CopyState | ( | int | parentEditLevel, |
bool | parentBindingEdit | ||
) |
Copies the state of the object and places the copy onto the state stack.
parentEditLevel | Parent object's edit level. |
parentBindingEdit | Indicates whether parent is in edit mode due to data binding. |
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.
parentEditLevel | Parent object's edit level. |
parentBindingEdit | Indicates whether parent is in edit mode due to data binding. |
|
get |
Gets the current edit level of the object.
Definition at line 23 of file IUndoableObject.cs.