Search Results for

    Show / Hide Table of Contents

    Interface IModelSingleLayoutDisplayer

    The main interface for popup windows that also implement the IModelLayoutHost but are not the IMainForm

    Instead they are used purely as a host of a single IModelLayoutDisplayer in a popup window, and are not capable of displaying multiple displayers unlike the main application itself

    Inherited Members
    IModelLayoutHost.OnLayoutsChanged(LayoutChangeEventArgs)
    IModelLayoutHost.DisplayItem(DisplayableItemDescriptor)
    IModelLayoutHost.DisplaySingleLayoutItem(DisplayableItemDescriptor, DefaultLayoutGenerator)
    IModelLayoutHost.SelectLayout(IModelLayoutDisplayer)
    IModelLayoutHost.CloseLayout(IModelLayoutDisplayer)
    IModelLayoutHost.Context
    IModelLayoutHost.Controller
    IModelLayoutHost.LayoutsChanged
    IModelLayoutCommon.Refresh(bool)
    IModelLayoutCommon.GetHost()
    IModelLayoutCommon.Close(bool)
    IModelLayoutCommon.Window
    IBusyReporter.DisplayBusy(string)
    IBusyReporter.StopBusy()
    IBusyReporter.IsBusy
    IDisposable.Dispose()
    IWindow.CloseWindow()
    IWindow.ShowDialog()
    IWindow.Show()
    IWindow.SetOwner(IWindow)
    Namespace: LemonEdge.Client.Core.Views.Core
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public interface IModelSingleLayoutDisplayer : IModelLayoutHost, IModelLayoutCommon, IBusyReporter, IDisposable, IWindow

    Properties

    HostOwner

    the host model layout for access to core context items.

    Declaration
    IModelLayoutCommon HostOwner { get; set; }
    Property Value
    Type Description
    IModelLayoutCommon

    Methods

    InitForItemDisplay(DisplayableItemDescriptor, DefaultLayoutGenerator)

    Initializes this single layout displayer host to display the specified item with an optional custom layout

    Declaration
    Task InitForItemDisplay(DisplayableItemDescriptor displayItem, DefaultLayoutGenerator customLayout = null)
    Parameters
    Type Name Description
    DisplayableItemDescriptor displayItem

    The item this single displayer should display

    DefaultLayoutGenerator customLayout

    An optional custom layout to use for displaying the item if you want to override the layout the system would use by default

    Returns
    Type Description
    Task

    A task indicating the completion of loading the layout and displaying the specified item

    InitForItemSelectionAny<T>(DisplayableItemDescriptor, bool, DefaultLayoutGenerator, IEnumerable<T>)

    Initializes this single layout displayer host to display the specified layout for selecting items

    Declaration
    Task<IEnumerable<T>> InitForItemSelectionAny<T>(DisplayableItemDescriptor displayer, bool multiSelect, DefaultLayoutGenerator customLayout = null, IEnumerable<T> items = null)
    Parameters
    Type Name Description
    DisplayableItemDescriptor displayer

    The item to display against the layout

    bool multiSelect

    Indicates if multi selection is allowed or not

    DefaultLayoutGenerator customLayout

    The custom layout to use, otherwise the default layout selector is used

    IEnumerable<T> items

    The restricted set of items to allow selection from

    Returns
    Type Description
    Task<IEnumerable<T>>

    The selected items if any

    Type Parameters
    Name Description
    T

    The type of item to be selecting

    InitForItemSelection<T>(DisplayableItemDescriptor, bool, DefaultLayoutGenerator, QueryableFilter, IEnumerable<T>)

    Initializes this single layout displayer host to display the specified layout for selecting items

    Declaration
    Task<IEnumerable<IBaseEntity>> InitForItemSelection<T>(DisplayableItemDescriptor displayer, bool multiSelect, DefaultLayoutGenerator customLayout = null, QueryableFilter filter = null, IEnumerable<T> items = null) where T : IBaseEntity
    Parameters
    Type Name Description
    DisplayableItemDescriptor displayer

    The item to display against the layout

    bool multiSelect

    Indicates if multi selection is allowed or not

    DefaultLayoutGenerator customLayout

    The custom layout to use, otherwise the default layout selector is used

    QueryableFilter filter

    Any filters to apply to the layout

    IEnumerable<T> items

    The restricted set of items to allow selection from

    Returns
    Type Description
    Task<IEnumerable<IBaseEntity>>

    The selected items if any

    Type Parameters
    Name Description
    T

    The type of item to be selecting

    SetHost(IModelLayoutCommon)

    Sets the host model layout for access to core context items.

    Declaration
    void SetHost(IModelLayoutCommon host)
    Parameters
    Type Name Description
    IModelLayoutCommon host

    The host context container

    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.