Interface IPopupWindowController<TResult>
Inherited Members
Namespace: LemonEdge.Client.UI.API.Controllers
Assembly: LemonEdge.Client.UI.API.dll
Syntax
public interface IPopupWindowController<TResult> : IPopupWindowController, IController
Type Parameters
| Name | Description |
|---|---|
| TResult |
Properties
Commands
The custom commands this popup window can execute
Declaration
IEnumerable<ViewCommand> Commands { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<ViewCommand> |
GetResult
Returns the result of the popup window when the form has been dismissed.
A tuple holding if ok was clicked to dismiss the window, and the result if so
Declaration
Task<(bool OkClicked, TResult Result)> GetResult { get; }
Property Value
| Type | Description |
|---|---|
| Task<(bool OkClicked, TResult Result)> |
Methods
Display()
Can be overriden by inheriting classes to perform custom display implementations
Declaration
Task Display()
Returns
| Type | Description |
|---|---|
| Task | A task indicating the completion of the operation |
OnOk(TResult)
Called by the popup window instance when the user has dismissed the popup form by clicking ok
Declaration
void OnOk(TResult result)
Parameters
| Type | Name | Description |
|---|---|---|
| TResult | result | The result to return back to the caller |
Validate(TResult)
Returns if the provided parameter is valid or not
Declaration
Task<(bool IsValid, string ValidationFailureMessage)> Validate(TResult result)
Parameters
| Type | Name | Description |
|---|---|---|
| TResult | result |
Returns
| Type | Description |
|---|---|
| Task<(bool IsValid, string ValidationFailureMessage)> | True if valid, otherwise false with a corresponding message |