Class CustomCommandViewController
Inheritance
CustomCommandViewController
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Controllers
Assembly: LemonEdge.ClientEntities.dll
Syntax
public class CustomCommandViewController : BaseDefaultSingleViewController<ICustomCommand>, IModelViewController
Constructors
CustomCommandViewController(IBaseDefaultSingleView<ICustomCommand>)
Declaration
public CustomCommandViewController(IBaseDefaultSingleView<ICustomCommand> view)
Parameters
Type | Name | Description |
---|---|---|
IBaseDefaultSingleView<ICustomCommand> | view |
Methods
AlterControlInfo(ControlDisplayInfo)
Automatically assigns relationship control info and other work for controls from the entity definition itself
Provides inheriting classes the option to tailor any control as much as they like before it is created in the SingleView
Declaration
protected override void AlterControlInfo(ControlDisplayInfo info)
Parameters
Type | Name | Description |
---|---|---|
ControlDisplayInfo | info | The control definition to be altered |
Overrides
LemonEdge.Client.Core.Views.Core.BaseDefaultSingleViewController<LemonEdge.API.Entities.Design.ICustomCommand>.AlterControlInfo(LemonEdge.Client.UI.API.Controls.ControlDisplayInfo)
ControlNames()
A list of all the controls to be dynamically created in the SingleView
This is used by the system to create the actual ControlDisplayInfo classes required from the Controls() property
You can override this to provide a simple definition of each control (combined with AlterControlInfo(ControlDisplayInfo) for more detail), or you can just override Controls() and ignore thisDeclaration
protected override IEnumerable<ControlDisplayInfoLight> ControlNames()
Returns
Type | Description |
---|---|
IEnumerable<ControlDisplayInfoLight> | A list of all the controls to be dynamically created in the SingleView |
Overrides
LemonEdge.Client.Core.Views.Core.BaseDefaultSingleViewController<LemonEdge.API.Entities.Design.ICustomCommand>.ControlNames()
InitCommands(IList<ViewCommand>)
Provides the inheriting class an opportunity to add custom commands to this controller
Declaration
protected override void InitCommands(IList<ViewCommand> commands)
Parameters
Type | Name | Description |
---|---|---|
IList<ViewCommand> | commands | The current set of commands for this controller |