Class ChartViewController
The controller for handling the IChartBase view
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
public class ChartViewController : ModelViewController, IModelViewController
Constructors
ChartViewController(IChartBase)
Creates a new chart controller with the specified instance of a chart view
Declaration
public ChartViewController(IChartBase view)
Parameters
Type | Name | Description |
---|---|---|
IChartBase | view | The instance of the chart view in the client application ui |
Properties
Chart
The processor for handling the chart design and execution
Declaration
public IChartProcessor Chart { get; }
Property Value
Type | Description |
---|---|
IChartProcessor |
ChartView
The IChartBase view this controller works with
Declaration
public IChartBase ChartView { get; }
Property Value
Type | Description |
---|---|
IChartBase |
ContextHelpURL
The help url for the chart view
Declaration
public override string ContextHelpURL { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ListenToChanges
Track changes as we want to know if the chart desgin is being modified
Declaration
public override bool ListenToChanges { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
Clear()
Clears the chart view
Declaration
public override Task Clear()
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |
Overrides
DisplayUI()
Loads the IChartProcessor for this view, and executes the query to pass the results to the chart for displaying
Declaration
public override Task DisplayUI()
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |
Overrides
InitAsync()
Processes any ChartViewResultParams against the Param for this view which can indicate how to execute the preconfigured chart data
Declaration
public override Task InitAsync()
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |
Overrides
InitCommands(IList<ViewCommand>)
Adds a command to execute the chart again that will prompt for parameters
Declaration
protected override void InitCommands(IList<ViewCommand> commands)
Parameters
Type | Name | Description |
---|---|---|
IList<ViewCommand> | commands | The initial set of commands for this view |
Overrides
OnTrackedItemChanged(object, string)
Update the chart design if chart details are changed
Declaration
protected override void OnTrackedItemChanged(object item, string propName)
Parameters
Type | Name | Description |
---|---|---|
object | item | The item that has changed |
string | propName | The name of the property for the changed item |
Overrides
Redisplay()
Redisplays this chart, supressing any popup for new parameters (unless required)
Declaration
public override Task Redisplay()
Returns
Type | Description |
---|---|
Task | A task indicating the completion of this operation |