Class HasVersionController<T>
The default controller for an entity that implements IHasVersion
Provides version information and controls
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Controllers
Assembly: LemonEdge.ClientCore.dll
Syntax
public class HasVersionController<T> : BaseDefaultSingleViewController<T>, IModelViewController where T : IHasVersion, IBaseEntity
Type Parameters
Name | Description |
---|---|
T | The type of entity that implements IHasVersion |
Constructors
HasVersionController(IBaseDefaultSingleView<T>)
Creates a new version controller for the entity type T
that implements
IHasVersion
Declaration
public HasVersionController(IBaseDefaultSingleView<T> view)
Parameters
Type | Name | Description |
---|---|---|
IBaseDefaultSingleView<T> | view | The default single view instance for this entity type |
Methods
ControlNames()
Declaration
protected override IEnumerable<ControlDisplayInfoLight> ControlNames()
Returns
Type | Description |
---|---|
IEnumerable<ControlDisplayInfoLight> |
Overrides
InitCommands(IList<ViewCommand>)
Adds a reset version to 0 command to the list of commands for this view
Declaration
protected override void InitCommands(IList<ViewCommand> commands)
Parameters
Type | Name | Description |
---|---|---|
IList<ViewCommand> | commands | The standard list of commands for this view |