Interface ILockable
A UI interface used for processors (API.Processors.Transactional.BaseTransactionProcessor and others) to ensure controls are locked as appropriate
Namespace: LemonEdge.API.Client.Views.Core
Assembly: LemonEdge.API.dll
Syntax
public interface ILockable
Properties
CanLock
Indicates if this item can be locked/unlocked
Declaration
bool CanLock { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
CanWrite(IBaseEntity)
Indicates this implementation can or can not be updated
Declaration
bool CanWrite(IBaseEntity baseEntity)
Parameters
| Type | Name | Description |
|---|---|---|
| IBaseEntity | baseEntity |
Returns
| Type | Description |
|---|---|
| bool | true if it can be updated, otherwise false |
IsLocked(IBaseEntity)
Indicates if this item is currently locked or not
Declaration
bool IsLocked(IBaseEntity baseEntity)
Parameters
| Type | Name | Description |
|---|---|---|
| IBaseEntity | baseEntity |
Returns
| Type | Description |
|---|---|
| bool | true if it can be unlocked to enable updates, otherwise false |
SetLock(IBaseEntity, bool)
Sets the locked status
Declaration
void SetLock(IBaseEntity baseEntity, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| IBaseEntity | baseEntity | |
| bool | value |