ICanEdit Interface

Represents an object with nested committable and revertible editing capability.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public interface ICanEdit

Properties

EditLevel Gets the editing level. That is, the number of BeginNewEdit calls without corresponding CommitLastEdit or RevertLastEdit calls.

Methods

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