Search Results for

    Show / Hide Table of Contents

    Class RefreshContext

    This command executes the RefreshTab system command

    Refreshes the current active tab if this command has a IModelLayoutHost as an owner, or the actual IModelLayoutDisplayer if that is the owner

    Inheritance
    object
    BaseHasChildren<EPCommandWithDescriptor>
    EPCommand
    RefreshContext
    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.InternalCanExecuteAsync(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.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.RefreshTab, null)]
    public class RefreshContext : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable

    Constructors

    RefreshContext(IRootController, IModelLayoutCommon)

    Creates a new RefreshContext command

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

    Key

    Indicates the command key to use for executing this from a keyboard command

    Declaration
    public override KeyboardKey Key { get; }
    Property Value
    Type Description
    KeyboardKey
    Overrides
    EPCommand.Key

    ModifierKeys

    Indicates the modifier keys to be used with Key when executing this command from the keyboard

    Declaration
    public override KeyboardModifierKeys ModifierKeys { get; }
    Property Value
    Type Description
    KeyboardModifierKeys
    Overrides
    EPCommand.ModifierKeys

    SubscribeToLayoutChange

    True - This command reacts to changes in the active layout.

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

    Methods

    InternalCanExecute(object)

    Returns true if the layout to be refreshed is not displaying a new item as its main displayed item. You can not refresh something that is new.

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

    The command parameter

    Returns
    Type Description
    bool

    True if the layout to be refreshed is not displaying a new item as its main displayed item. You can not refresh something that is new.

    Overrides
    EPCommand.InternalCanExecute(object?)

    InternalExecuteAsync(object)

    Refreshes the current active tab if this command has a IModelLayoutHost as an owner, or the actual IModelLayoutDisplayer if that is the owner

    The refresh actually refreshes the context for a layout, so if this context is shared across more than one layout than all those affected layouts will also be refreshed

    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)

    Refresh(IModelLayoutDisplayer)

    Refreshes the current active tab if this command has a IModelLayoutHost as an owner, or the actual IModelLayoutDisplayer if that is the owner

    The refresh actually refreshes the context for a layout, so if this context is shared across more than one layout than all those affected layouts will also be refreshed

    Declaration
    public static Task Refresh(IModelLayoutDisplayer layout)
    Parameters
    Type Name Description
    IModelLayoutDisplayer layout

    The layout to refresh the context of and reload

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    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.