Class RelationshipsController
Inheritance
RelationshipsController
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Controllers
Assembly: LemonEdge.ClientEntities.dll
Syntax
public class RelationshipsController : BaseTreeViewAnyController<RelationshipItem>, ICollectionExportable, ISearchController, IModelViewController
Constructors
RelationshipsController(IBaseTreeView<RelationshipItem>)
Declaration
public RelationshipsController(IBaseTreeView<RelationshipItem> view)
Parameters
Type | Name | Description |
---|---|---|
IBaseTreeView<RelationshipItem> | view |
Properties
CommandOpen
Provides the ability for an inheriting class to override the Open command
Declaration
protected override ViewCommand CommandOpen { get; }
Property Value
Type | Description |
---|---|
ViewCommand |
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.Client.Core.Views.Controllers.RelationshipItem>.CommandOpen
CommandOpenAllow
Indicates if the view should show the Open command - default is false
Declaration
public override bool CommandOpenAllow { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.Client.Core.Views.Controllers.RelationshipItem>.CommandOpenAllow
GetParentIDPropertyName
Returns the property on the entity type RelationshipItem that holds the relationship to the parent instance of type RelationshipItem too
Declaration
protected override string GetParentIDPropertyName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.Client.Core.Views.Controllers.RelationshipItem>.GetParentIDPropertyName
GetTreeNodeIconPropertyName
Declaration
public override string GetTreeNodeIconPropertyName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.Client.Core.Views.Controllers.RelationshipItem>.GetTreeNodeIconPropertyName
GetTreeNodeLabelPropertyName
Returns the property on the entity type RelationshipItem that holds the string that should be shown as the label on the tree node for every item in the tree view control itself
Declaration
public override string GetTreeNodeLabelPropertyName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.Client.Core.Views.Controllers.RelationshipItem>.GetTreeNodeLabelPropertyName
GetTreeNodeTooltipPropertyName
Declaration
public override string GetTreeNodeTooltipPropertyName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.Client.Core.Views.Controllers.RelationshipItem>.GetTreeNodeTooltipPropertyName
Methods
GetIDValue(RelationshipItem)
Declaration
public override Guid GetIDValue(RelationshipItem item)
Parameters
Type | Name | Description |
---|---|---|
RelationshipItem | item |
Returns
Type | Description |
---|---|
Guid |
Overrides
HasLazyChildrenToLoad(TreeNode<RelationshipItem>)
Declaration
public override bool HasLazyChildrenToLoad(TreeNode<RelationshipItem> item)
Parameters
Type | Name | Description |
---|---|---|
TreeNode<RelationshipItem> | item |
Returns
Type | Description |
---|---|
bool |
Overrides
LazyLoadChildren(TreeNode<RelationshipItem>)
Declaration
public override Task<IEnumerable<TreeNode<RelationshipItem>>> LazyLoadChildren(TreeNode<RelationshipItem> node)
Parameters
Type | Name | Description |
---|---|---|
TreeNode<RelationshipItem> | node |
Returns
Type | Description |
---|---|
Task<IEnumerable<TreeNode<RelationshipItem>>> |
Overrides
LoadItems()
The method used by DisplayUI() to load all the entities for this tree view
Declaration
protected override Task<IEnumerable<RelationshipItem>> LoadItems()
Returns
Type | Description |
---|---|
Task<IEnumerable<RelationshipItem>> | The list of loaded entities to be displayed in the tree view |
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.Client.Core.Views.Controllers.RelationshipItem>.LoadItems()
OpenItem(RelationshipItem)
Opens the specified entity in a new IModelLayoutDisplayer
Declaration
public override Task OpenItem(RelationshipItem item)
Parameters
Type | Name | Description |
---|---|---|
RelationshipItem | item | The item in the tree view to open |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |