Search Results for

    Show / Hide Table of Contents

    Class LoadFavourite

    This command executes the LoadFavourite system command

    A command which has each IFavourite item for this user loaded as child commands to this one which load that item when executed

    Inheritance
    object
    BaseHasChildren<EPCommandWithDescriptor>
    EPCommand
    EPCommandWithDescriptor
    LoadFavourite
    Implements
    IHasChildren<EPCommandWithDescriptor>
    IHasChildren
    IDisposable
    IEPCommandWithDescriptor
    IEPCommand
    ICommand
    ICommandDescriptor
    Inherited Members
    EPCommandWithDescriptor.OverlayIconID
    EPCommandWithDescriptor.Type
    EPCommandWithDescriptor.ToolTip
    EPCommandWithDescriptor.Parameter
    EPCommandWithDescriptor.HelpURL
    EPCommand.OnCanExecuteChanged()
    EPCommand.SetToggler(IHasToggleStatus)
    EPCommand.OnLayoutsChanged(IModelLayoutHost, LayoutChangeEventArgs)
    EPCommand.ExternalExecute(object)
    EPCommand.InternalExecute(object)
    EPCommand.ExternalCanExecute(object)
    EPCommand.InternalCanExecuteAsync(object)
    EPCommand.GetModifierText(IEPCommand)
    EPCommand.RemoveEventHandlersOnDispose()
    EPCommand.Dispose(bool)
    EPCommand.Dispose()
    EPCommand.RootController
    EPCommand.ActiveDisplayerFromOwner
    EPCommand.SubscribeToLayoutChange
    EPCommand.From
    EPCommand.LockExecution
    EPCommand.CustomType
    EPCommand.Key
    EPCommand.ModifierKeys
    EPCommand.Owner
    EPCommand.Toggler
    EPCommand.IsQuickAccessCommand
    EPCommand.CanExecuteChanged
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(EPCommandWithDescriptor, bool)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(EPCommandWithDescriptor)
    BaseHasChildren<EPCommandWithDescriptor>.ClearChildren()
    BaseHasChildren<EPCommandWithDescriptor>.ClearMyParent()
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.Order
    BaseHasChildren<EPCommandWithDescriptor>.Children
    BaseHasChildren<EPCommandWithDescriptor>.Parent
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Commands
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    [CommandDescriptorOptions(Command.LoadFavourite, null)]
    public class LoadFavourite : EPCommandWithDescriptor, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor

    Constructors

    LoadFavourite(IRootController, IModelLayoutCommon)

    Creates a new LoadFavourite command which has all favourites for this user as child commands

    Declaration
    public LoadFavourite(IRootController root, IModelLayoutCommon owner)
    Parameters
    Type Name Description
    IRootController root

    The root controller, for service access.

    IModelLayoutCommon owner

    The owning context for this command

    Properties

    Description

    The description of the favourite item to load

    Declaration
    public override string Description { get; }
    Property Value
    Type Description
    string
    Overrides
    EPCommandWithDescriptor.Description

    HasChildCommands

    Returns true if this is the root command, otherwise false if it loads an individual favourite item

    Declaration
    public override bool HasChildCommands { get; }
    Property Value
    Type Description
    bool
    Overrides
    EPCommand.HasChildCommands

    IconID

    The default icon associated with the favourite item to be loaded

    Declaration
    public override Guid IconID { get; }
    Property Value
    Type Description
    Guid
    Overrides
    EPCommandWithDescriptor.IconID

    ReloadChildrenOnEachOpen

    True for the root command-Indicates the favourite child items should be reloaded each time the root command is activated

    Declaration
    public override bool ReloadChildrenOnEachOpen { get; }
    Property Value
    Type Description
    bool
    Overrides
    EPCommand.ReloadChildrenOnEachOpen

    Title

    The name of the favourite item to load

    Declaration
    public override string Title { get; }
    Property Value
    Type Description
    string
    Overrides
    EPCommandWithDescriptor.Title

    Methods

    InternalCanExecute(object)

    True - can open favourites

    Declaration
    public override bool InternalCanExecute(object parameter)
    Parameters
    Type Name Description
    object parameter

    The command parameters

    Returns
    Type Description
    bool

    True

    Overrides
    EPCommand.InternalCanExecute(object?)

    InternalExecuteAsync(object)

    Opens the favourite item and displays it to the user

    Declaration
    public override Task InternalExecuteAsync(object parameter)
    Parameters
    Type Name Description
    object parameter

    The command parameter

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    EPCommand.InternalExecuteAsync(object)

    LoadChildrenAsync()

    Loads all the favourite items from the cache and adds the as child LoadFavourite commands for each favourite item that can be loaded by the user

    Declaration
    public override Task LoadChildrenAsync()
    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    EPCommand.LoadChildrenAsync()

    OpenFavourite(IModelLayoutCommon, IFavourite)

    Opens the specified favourite item into the mainform

    Declaration
    public static Task OpenFavourite(IModelLayoutCommon owner, IFavourite fav)
    Parameters
    Type Name Description
    IModelLayoutCommon owner

    The owning host to load the favourite item into

    IFavourite fav

    The favourite item to load

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Implements

    IHasChildren<T>
    IHasChildren
    IDisposable
    IEPCommandWithDescriptor
    IEPCommand
    ICommand
    ICommandDescriptor

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    CommandExtensions.CreateCommand(EPCommand, ICommandDescriptor, CommandButtonType, bool, CommandSize)
    CommandExtensions.UpdateCommand(EPCommand, object, ICommandDescriptor, bool, CommandSize)
    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.