Class ObjectEntityController<T>
An optional base object entity controller used for displaying any single entity that inherits from IObjectEntityBase ina consistent manner
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Controllers
Assembly: LemonEdge.ClientCore.dll
Syntax
public abstract class ObjectEntityController<T> : BaseDefaultSingleViewController<T>, IModelViewController where T : IObjectEntityBase
Type Parameters
| Name | Description |
|---|---|
| T | The entity type that inherits from IObjectEntityBase |
Constructors
ObjectEntityController(IBaseDefaultSingleView<T>)
Creates a new ObjectEntityController
Declaration
public ObjectEntityController(IBaseDefaultSingleView<T> view)
Parameters
| Type | Name | Description |
|---|---|---|
| IBaseDefaultSingleView<T> | view | The IBaseDefaultSingleView view implementation using the UI components of the client application |
Properties
AllowCanBeCounterparty
Indicates the CanBeCounterparty control should also be included in the ControlNames() for this view
Declaration
protected virtual bool AllowCanBeCounterparty { get; }
Property Value
| Type | Description |
|---|---|
| bool |
AllowCanOwnInstruments
Indicates the IObjectEntityBase.AllowCanOwnInstruments control should also be included in the ControlNames() for this view
Declaration
protected virtual bool AllowCanOwnInstruments { get; }
Property Value
| Type | Description |
|---|---|
| bool |
AllowGL
Indicates the HasGL control should also be included in the ControlNames() for this view
Declaration
protected virtual bool AllowGL { get; }
Property Value
| Type | Description |
|---|---|
| bool |
AllowIncludeInAllocations
Indicates the AllowRuleAllocations control should also be included in the ControlNames() for this view
Declaration
protected virtual bool AllowIncludeInAllocations { get; }
Property Value
| Type | Description |
|---|---|
| bool |
AllowYearEnd
Indicates the optional year end control should be visible
Declaration
protected virtual bool AllowYearEnd { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ListenToChanges
We check changes if HasParentToAnyRelationship is true
Declaration
public override bool ListenToChanges { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Methods
ControlNames()
Adds the Name, Code, LegalName, and CurrencyID 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 |