KGy SOFT

ICanEdit Interface

KGy SOFT Core Libraries Help
Represents an object with nested committable and revertible editing capability.

Namespace:  KGySoft.ComponentModel
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-rc.1
Syntax

public interface ICanEdit

The ICanEdit type exposes the following members.

Properties

  NameDescription
Public propertyEditLevel
Gets the editing level. That is, the number of BeginNewEdit calls without corresponding CommitLastEdit or RevertLastEdit calls.
Top
Methods

  NameDescription
Public methodBeginNewEdit
Begins a new level of committable/revertible editing session on the object.
Public methodCommitLastEdit
Commits all changes since the last BeginNewEdit call.
Public methodRevertLastEdit
Discards all changes since the last BeginNewEdit call.
Public methodTryCommitAllEdits
Commits all changes of all editing levels.
Public methodTryRevertAllEdits
Reverts all changes of all editing levels.
Top
See Also

Reference