Class InstrumentController<T>
An optional base instrument controller used for displaying any instrument entity that inherits from IInstrumentBase in a consistent manner
Inheritance
Implements
Inherited Members
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
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
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
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 |