Search Results for

    Show / Hide Table of Contents

    Class InstrumentController<T>

    An optional base instrument controller used for displaying any instrument entity that inherits from IInstrumentBase in a consistent manner

    Inheritance
    object
    ModelViewController
    BaseDefaultSingleViewController<T>
    InstrumentController<T>
    InstrumentController
    Implements
    IModelViewController
    Inherited Members
    BaseDefaultSingleViewController<T>.InitCommands(IList<ViewCommand>)
    BaseDefaultSingleViewController<T>.ProcessCustomCommandResult(object)
    BaseDefaultSingleViewController<T>.GetSingleViewController(IBaseDefaultSingleView<T>, string)
    BaseDefaultSingleViewController<T>.InitAsync()
    BaseDefaultSingleViewController<T>.LoadSingleItem()
    BaseDefaultSingleViewController<T>.LoadExtendedItem(Type)
    BaseDefaultSingleViewController<T>.SetAndLoadSingleItem()
    BaseDefaultSingleViewController<T>.LoadControls()
    BaseDefaultSingleViewController<T>.IncrementControlCheck(int)
    BaseDefaultSingleViewController<T>.DecrementControlCheck()
    BaseDefaultSingleViewController<T>.DisplayUI()
    BaseDefaultSingleViewController<T>.DisplayControlItem(ControlDisplayInfo, T)
    BaseDefaultSingleViewController<T>.DisplayFormulaItem(ControlDisplayInfo, T)
    BaseDefaultSingleViewController<T>.Controls()
    BaseDefaultSingleViewController<T>.GetControls()
    BaseDefaultSingleViewController<T>.GetControlDescriptor(EntityDescriptor, string)
    BaseDefaultSingleViewController<T>.GetControlEntityDescriptor(string)
    BaseDefaultSingleViewController<T>.SingleItem
    BaseDefaultSingleViewController<T>.SelectedItemForSubViews
    BaseDefaultSingleViewController<T>.SingleView
    BaseDefaultSingleViewController<T>.Descriptor
    BaseDefaultSingleViewController<T>.ViewDisplayType
    BaseDefaultSingleViewController<T>.ViewMaxWidth
    BaseDefaultSingleViewController<T>.ViewMaxHeight
    BaseDefaultSingleViewController<T>.ViewRowCount
    BaseDefaultSingleViewController<T>.ViewColumnCount
    BaseDefaultSingleViewController<T>.HasParentToAnyRelationship
    ModelViewController.DisplayItem(object)
    ModelViewController.GetCurrentDisplayedItem(object)
    ModelViewController.Redisplay()
    ModelViewController.Clear()
    ModelViewController.CloseController()
    ModelViewController.GetCanWrite(object)
    ModelViewController.ShouldDisplayItem(object)
    ModelViewController.RemoveHandlers(object)
    ModelViewController.AddHandlers(object)
    ModelViewController.RemoveCommand(ViewCommand)
    ModelViewController.RemoveCommands<TOfType>()
    ModelViewController.InsertCommand(ViewCommand, int)
    ModelViewController.InsertCommand(ViewCommand, ViewCommand, ViewCommand)
    ModelViewController.UpdateAllCommands()
    ModelViewController.GetNestedViews()
    ModelViewController.RootController
    ModelViewController.ServiceContext
    ModelViewController.UIContext
    ModelViewController.CanWrite
    ModelViewController.TrackChanges
    ModelViewController.CheckIsLockedForCanWrite
    ModelViewController.DisplayIfNull
    ModelViewController.CurrentDisplayedItem
    ModelViewController.View
    ModelViewController.Commands
    ModelViewController.ContextHelpURL
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Views.Controllers
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public abstract class InstrumentController<T> : BaseDefaultSingleViewController<T>, IModelViewController where T : IInstrumentBase
    Type Parameters
    Name Description
    T

    The instrument entity type that inherits from IInstrumentBase

    Constructors

    InstrumentController(IBaseDefaultSingleView<T>)

    Creates a new InstrumentController

    Declaration
    public InstrumentController(IBaseDefaultSingleView<T> view)
    Parameters
    Type Name Description
    IBaseDefaultSingleView<T> view

    The IBaseDefaultSingleView view implementation using the UI components of the client application

    Properties

    ListenToChanges

    We check changes if HasParentToAnyRelationship is true

    Declaration
    public override bool ListenToChanges { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseDefaultSingleViewController<T>.ListenToChanges

    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
    BaseDefaultSingleViewController<T>.AlterControlInfo(ControlDisplayInfo)

    ControlNames()

    Adds the Name, CurrencyID, OwningEntityID, and AllowUnmapped as controls to the view

    Declaration
    protected override IEnumerable<ControlDisplayInfoLight> ControlNames()
    Returns
    Type Description
    IEnumerable<ControlDisplayInfoLight>

    The controls to be displayed against this view

    Overrides
    BaseDefaultSingleViewController<T>.ControlNames()

    OnTrackedItemChanged(object, string)

    If HasParentToAnyRelationship is true then it will update the control holding that relationship value to keep changes in sync in the views to the user

    Declaration
    protected override void OnTrackedItemChanged(object item, string propName)
    Parameters
    Type Name Description
    object item

    The item that had a property changed

    string propName

    The name of the changed property

    Overrides
    BaseDefaultSingleViewController<T>.OnTrackedItemChanged(object, string)

    Implements

    IModelViewController

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.