Search Results for

    Show / Hide Table of Contents

    Class CommandControlCreatorBase

    Inheritance
    object
    CommandControlCreatorBase
    Implements
    ICommandControlCreator
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Commands.Core
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public abstract class CommandControlCreatorBase : ICommandControlCreator

    Constructors

    CommandControlCreatorBase()

    Declaration
    protected CommandControlCreatorBase()

    Properties

    ControlCreator

    Declaration
    public static IControlCreator ControlCreator { get; }
    Property Value
    Type Description
    IControlCreator

    Instance

    Declaration
    public static ICommandControlCreator Instance { get; set; }
    Property Value
    Type Description
    ICommandControlCreator

    RootController

    Declaration
    protected static IRootController RootController { get; }
    Property Value
    Type Description
    IRootController

    Methods

    CreateControlCommand(EPCommand, ICommandDescriptor, CommandButtonType, bool, CommandSize)

    Creates the actual UI component for the specified command, and detail.

    Declaration
    public abstract object CreateControlCommand(EPCommand command, ICommandDescriptor descriptor, CommandButtonType type, bool showTitle, CommandSize size)
    Parameters
    Type Name Description
    EPCommand command

    The command to use while creating the UI component for the command

    ICommandDescriptor descriptor

    A descriptor object for the command containing title, icon, etc

    CommandButtonType type

    The type of ui component to create for the command

    bool showTitle

    Indicates if the title should be visible, or to just use an icon

    CommandSize size

    The size to make the ui component of the command

    Returns
    Type Description
    object

    The actual UI component for the specified command, and detail.

    CreateMenuItem(EPCommand)

    Creates a menu item ui component from a command.

    Declaration
    public abstract object CreateMenuItem(EPCommand command)
    Parameters
    Type Name Description
    EPCommand command

    The command

    Returns
    Type Description
    object

    SetRoot(IRootController)

    Declaration
    public static void SetRoot(IRootController appController)
    Parameters
    Type Name Description
    IRootController appController

    UnlinkButton(object)

    Provides the client application the opportunity to unlink a button before it is disposed. This allows the removal of handlers or other cleanup

    Declaration
    public abstract void UnlinkButton(object btn)
    Parameters
    Type Name Description
    object btn

    The ui component to unlink

    UpdateControlCommand(EPCommand, object, ICommandDescriptor, bool, CommandSize)

    Updates a provided ui component (btn) to use the specified command and details

    Declaration
    public abstract void UpdateControlCommand(EPCommand command, object btn, ICommandDescriptor descriptor, bool showTitle, CommandSize size)
    Parameters
    Type Name Description
    EPCommand command

    The command to use while updating the UI component for the command

    object btn

    The ui component to be updated with this command and detail

    ICommandDescriptor descriptor

    A descriptor object for the command containing title, icon, etc

    bool showTitle

    Indicates if the title should be visible, or to just use an icon

    CommandSize size

    The size to make the ui component of the command

    UpdateMenuItem(object, EPCommand, ICommandDescriptor, CommandSize)

    Updates a menu item ui component, from a command.

    Declaration
    public abstract void UpdateMenuItem(object menuItem, EPCommand command, ICommandDescriptor descriptor, CommandSize size)
    Parameters
    Type Name Description
    object menuItem

    The ui component to update

    EPCommand command

    The command

    ICommandDescriptor descriptor

    The command descriptor

    CommandSize size

    The command size

    Implements

    ICommandControlCreator

    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.