Class HasVersionController<T>
The default controller for an entity that implements IHasVersion
Provides version information and controls
Inheritance
System.Object
HasVersionController<T>
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: 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 |
---|---|
System.Collections.Generic.IEnumerable<ControlDisplayInfoLight> |
Overrides
LemonEdge.Client.Core.Views.Core.BaseDefaultSingleViewController<T>.ControlNames()
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 |
---|---|---|
System.Collections.Generic.IList<ViewCommand> | commands | The standard list of commands for this view |