Search Results for

    Show / Hide Table of Contents

    Class RemoveFromFavourites

    This command executes the RemoveFromFavourites system command

    Gets the current displayed item from the active layout and removes it from the list of IFavourite items for the user

    Inheritance
    object
    BaseHasChildren<EPCommandWithDescriptor>
    EPCommand
    RemoveFromFavourites
    Implements
    IHasChildren<EPCommandWithDescriptor>
    IHasChildren
    IEPCommand
    ICommand
    IDisposable
    Inherited Members
    EPCommand.OnCanExecuteChanged()
    EPCommand.LoadChildrenAsync()
    EPCommand.SetToggler(IHasToggleStatus)
    EPCommand.OnLayoutsChanged(IModelLayoutHost, LayoutChangeEventArgs)
    EPCommand.ExternalExecute(object)
    EPCommand.InternalExecute(object)
    EPCommand.ExternalCanExecute(object)
    EPCommand.InternalCanExecute(object)
    EPCommand.GetModifierText(IEPCommand)
    EPCommand.RemoveEventHandlersOnDispose()
    EPCommand.Dispose(bool)
    EPCommand.Dispose()
    EPCommand.RootController
    EPCommand.ActiveDisplayerFromOwner
    EPCommand.ReloadChildrenOnEachOpen
    EPCommand.HasChildCommands
    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.RemoveFromFavourites, null)]
    public class RemoveFromFavourites : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable

    Constructors

    RemoveFromFavourites(IRootController, IModelLayoutCommon)

    Creates a new RemoveFromFavourites command

    Declaration
    public RemoveFromFavourites(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

    SubscribeToLayoutChange

    Returns true indicating this command should respond to the current selected layout changing

    Declaration
    protected override bool SubscribeToLayoutChange { get; }
    Property Value
    Type Description
    bool
    Overrides
    EPCommand.SubscribeToLayoutChange

    Methods

    InternalCanExecuteAsync(object)

    Returns true if there is a current active layout that is displaying a single entity that already exist in the current users list of favourite items

    Declaration
    public override Task<bool> InternalCanExecuteAsync(object parameter)
    Parameters
    Type Name Description
    object parameter

    THe command parameter

    Returns
    Type Description
    Task<bool>

    True if there is a current active layout that is displaying a single entity that already exist in the current users list of favourite items

    Overrides
    EPCommand.InternalCanExecuteAsync(object?)

    InternalExecuteAsync(object)

    Removes the displayed item against the current active layout from the list of favourite entities for the current logged in 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)

    Implements

    IHasChildren<T>
    IHasChildren
    IEPCommand
    ICommand
    IDisposable

    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.