Search Results for

    Show / Hide Table of Contents

    Class ChartViewController

    The controller for handling the IChartBase view

    Inheritance
    System.Object
    ModelViewController
    ChartViewController
    Implements
    IModelViewController
    Inherited Members
    ModelViewController.CurrentDisplayedItem
    ModelViewController.CanWrite
    ModelViewController.CheckIsLockedForCanWrite
    ModelViewController.View
    ModelViewController.DisplayItem(Object)
    ModelViewController.ShouldDisplayItem(Object)
    ModelViewController.DisplayIfNull
    ModelViewController.RemoveHandlers(Object)
    ModelViewController.AddHandlers(Object)
    ModelViewController.CloseController()
    ModelViewController.RemoveCommand(ViewCommand)
    ModelViewController.RemoveCommands<OFType>()
    ModelViewController.InsertCommand(ViewCommand, Int32)
    ModelViewController.InsertCommand(ViewCommand, ViewCommand, ViewCommand)
    ModelViewController.Commands
    ModelViewController.UpdateAllCommands()
    ModelViewController.SelectedItemForSubViews
    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 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
    System.String
    Overrides
    ModelViewController.ContextHelpURL

    TrackItemChanges

    Track changes as we want to know if the chart desgin is being modified

    Declaration
    public override bool TrackItemChanges { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    ModelViewController.TrackItemChanges

    Methods

    Clear()

    Clears the chart view

    Declaration
    public override Task Clear()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A task indicating the completion of the operation

    Overrides
    ModelViewController.Clear()

    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
    System.Threading.Tasks.Task

    A task indicating the completion of the operation

    Overrides
    ModelViewController.DisplayUI()

    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
    System.Threading.Tasks.Task

    A task indicating the completion of the operation

    Overrides
    ModelViewController.InitAsync()

    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
    System.Collections.Generic.IList<ViewCommand> commands

    The initial set of commands for this view

    Overrides
    ModelViewController.InitCommands(IList<ViewCommand>)

    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
    System.Object item

    The item that has changed

    System.String propName

    The name of the property for the changed item

    Overrides
    ModelViewController.OnTrackedItemChanged(Object, String)

    Redisplay()

    Redisplays this chart, supressing any popup for new parameters (unless required)

    Declaration
    public override Task Redisplay()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A task indicating the completion of this operation

    Overrides
    ModelViewController.Redisplay()

    Implements

    IModelViewController

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.