Interface IModelLayoutCommon
A common interface implemented by the IModelLayoutHost and IModelLayoutDisplayer for displaying items, closing, and getting the root host instance
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
public interface IModelLayoutCommon : IBusyReporter, IDisposable
Properties
Window
The window in which this ui display implementation is hosted
Declaration
IWindow Window { get; }
Property Value
| Type | Description |
|---|---|
| IWindow |
Methods
Close(bool)
Declaration
Task Close(bool silent = false)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | silent |
Returns
| Type | Description |
|---|---|
| Task |
GetHost()
Returns the root host this display is contained within. If this is a IModelLayoutHost implementation it will return itself. A displayer will return the host it is displayed within.
Declaration
IModelLayoutHost GetHost()
Returns
| Type | Description |
|---|---|
| IModelLayoutHost | The root host this display is contained within |
Refresh(bool)
Causes the display for this item to be refreshed. For a host this refreshes the whole system, for an individual layout it refreshes that context and reloads the display
Declaration
Task Refresh(bool silent = false)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | silent | False indicates the user should be prompted to save any pending changes if the data to be refreshed contains changes, before processing the refresh |
Returns
| Type | Description |
|---|---|
| Task | A task indicating the completion of the operation |