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 IModelLayouHost as an owner, or the actual IModelLayoutDisplayer if that is the owner

    Inheritance
    System.Object
    BaseHasChildren<EPCommandWithDescriptor>
    EPCommand
    RefreshContext
    Implements
    IHasChildren<EPCommandWithDescriptor>
    IHasChildren
    IEPCommand
    System.Windows.Input.ICommand
    System.IDisposable
    Inherited Members
    EPCommand.ActiveDisplayerFromOwner
    EPCommand.LoadChildrenAsync()
    EPCommand.ReloadChildrenOnEachOpen
    EPCommand.HasChildCommands
    EPCommand.SetToggler(IHasToggleStatus)
    EPCommand.Seperator
    EPCommand.Owner
    EPCommand.CanExecuteChanged
    EPCommand.OnCanExecuteChanged()
    EPCommand.OnLayoutsChanged(IModelLayouHost, LayoutChangeEventArgs)
    EPCommand.ICommand.Execute(Object)
    EPCommand.ExternalExecute(Object)
    EPCommand.InternalExecute(Object)
    EPCommand.LockExecution
    EPCommand.ICommand.CanExecute(Object)
    EPCommand.ExternalCanExecute(Object)
    EPCommand.InternalCanExecuteAsync(Object)
    EPCommand.Toggler
    EPCommand.CustomType
    EPCommand.Key
    EPCommand.ModifierKeys
    EPCommand.GetModifierText(IEPCommand)
    EPCommand.RemoveEventHandlersOnDispose()
    EPCommand.Dispose(Boolean)
    EPCommand.Dispose()
    BaseHasChildren<EPCommandWithDescriptor>.Order
    BaseHasChildren<EPCommandWithDescriptor>.Children
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(EPCommandWithDescriptor)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(EPCommandWithDescriptor)
    BaseHasChildren<EPCommandWithDescriptor>.ClearChildren()
    BaseHasChildren<EPCommandWithDescriptor>.Parent
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.IHasChildren.Children
    BaseHasChildren<EPCommandWithDescriptor>.IHasChildren.Parent
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.Client.Core.Commands
    Assembly: ClientCore.dll
    Syntax
    [CommandDescriptorOptions(Commands.RefreshTab, null)]
    public class RefreshContext : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable

    Constructors

    RefreshContext(IModelLayoutCommon)

    Creates a new RefreshContext command

    Declaration
    public RefreshContext(IModelLayoutCommon owner)
    Parameters
    Type Name Description
    IModelLayoutCommon owner

    The owning context for this command

    Properties

    SubscribeToLayoutChange

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

    Declaration
    public override bool SubscribeToLayoutChange { get; }
    Property Value
    Type Description
    System.Boolean
    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
    System.Object parameter

    The command parameter

    Returns
    Type Description
    System.Boolean

    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 IModelLayouHost 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
    System.Object parameter

    The command parameter

    Returns
    Type Description
    System.Threading.Tasks.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 IModelLayouHost 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
    System.Threading.Tasks.Task

    A task indicating the completion of the operation

    Implements

    IHasChildren<T>
    IHasChildren
    IEPCommand
    System.Windows.Input.ICommand
    System.IDisposable

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    CommandExtensions.CreateCommand(EPCommand, ICommandDescriptor, CommandButtonType, Boolean, CommandSize)
    CommandExtensions.UpdateCommand(EPCommand, Object, ICommandDescriptor, Boolean, CommandSize)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.