Represents an object with nested committable and revertible editing capability.
Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0-preview.3
Syntax
The ICanEdit type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() | EditLevel |
Gets the editing level. That is, the number of BeginNewEdit calls without corresponding CommitLastEdit or RevertLastEdit calls.
|
Methods
Name | Description | |
---|---|---|
![]() | BeginNewEdit |
Begins a new level of committable/revertible editing session on the object.
|
![]() | CommitLastEdit |
Commits all changes since the last BeginNewEdit call.
|
![]() | RevertLastEdit |
Discards all changes since the last BeginNewEdit call.
|
![]() | TryCommitAllEdits |
Commits all changes of all editing levels.
|
![]() | TryRevertAllEdits |
Reverts all changes of all editing levels.
|
See Also