Search Results for

    Show / Hide Table of Contents

    Interface IPopupWindowController<TResult>

    Inherited Members
    IPopupWindowController.OnOk(object)
    IPopupWindowController.OnCancel()
    IController.OwningWindow
    IController.RootController
    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

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.