Interface IModelLayoutCommon
A common interface implemented by the IModelLayouHost and IModelLayoutDisplayer for displaying items, closing, and getting the root host instance
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: 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(Boolean)
Declaration
Task Close(bool silent = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | silent |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
GetHost()
Returns the root host this display is contained within. If this is a IModelLayouHost implementation it will return itself. A displayer will return the host it is displayed within.
Declaration
IModelLayouHost GetHost()
Returns
Type | Description |
---|---|
IModelLayouHost | The root host this display is contained within |
Refresh(Boolean)
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 |
---|---|---|
System.Boolean | 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 |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of the operation |