Class ButtonController
A standard view that adds a specific button to the view that can perform any command available from the system
The IButtonView view that this works with specifies that the parameter for the view is of type ButtonViewParams
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Controllers
Assembly: ClientCore.dll
Syntax
public class ButtonController : ModelViewController, IModelViewController
Constructors
ButtonController(IButtonView)
Creates a new ButtonViewController
Declaration
public ButtonController(IButtonView view)
Parameters
Type | Name | Description |
---|---|---|
IButtonView | view | The IButtonView view implementation using the UI components of the client application |
Methods
DisplayUI()
Calls the ShowButton() so the ui in the client application can display the button in any manner that works for that ui.
It can even do nothing, as the command is also added to the Commands of this controller anyway, and is accessible that way too
Declaration
public override Task DisplayUI()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of the operation |
Overrides
InitCommands(IList<ViewCommand>)
Takes the configuration of the View.Descriptor.Param as a ButtonViewParams and uses it to construct the command that should be added to this controllers command collection and optionally available as a command on the view
Declaration
protected override void InitCommands(IList<ViewCommand> commands)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<ViewCommand> | commands | The list of commands available to be accessed by the user from this view |