Search Results for

    Show / Hide Table of Contents

    Class SwitchCanvas

    This command executes the SwitchCanvas system command

    Lists all canvases the user has access to, and the main system (no canvas), as child commands.

    Executing any will switch the users context to that canvas, or main system, and perform a RefreshAll(IModelLayoutCommon) to run the system in that new canvas
    Inheritance
    System.Object
    BaseHasChildren<EPCommandWithDescriptor>
    EPCommand
    EPCommandWithDescriptor
    SwitchCanvas
    Implements
    IHasChildren<EPCommandWithDescriptor>
    IHasChildren
    System.IDisposable
    IEPCommandWithDescriptor
    IEPCommand
    System.Windows.Input.ICommand
    ICommandDescriptor
    Inherited Members
    EPCommandWithDescriptor.ICommandDescriptor.Title
    EPCommandWithDescriptor.OverlayIconID
    EPCommandWithDescriptor.Type
    EPCommandWithDescriptor.ToolTip
    EPCommandWithDescriptor.Parameter
    EPCommandWithDescriptor.HelpURL
    EPCommand.ActiveDisplayerFromOwner
    EPCommand.ReloadChildrenOnEachOpen
    EPCommand.SetToggler(IHasToggleStatus)
    EPCommand.Seperator
    EPCommand.Owner
    EPCommand.CanExecuteChanged
    EPCommand.OnCanExecuteChanged()
    EPCommand.SubscribeToLayoutChange
    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.SwitchCanvas, null)]
    public class SwitchCanvas : EPCommandWithDescriptor, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor

    Constructors

    SwitchCanvas(IModelLayoutCommon)

    Creates a new SwitchCanvas command which will have all canvases, and the main system, as child commands

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

    The owning context for this command

    SwitchCanvas(IModelLayoutCommon, ICanvas)

    Creates a new SwitchCanvas that will switch the system into running under the specified canvas

    Declaration
    public SwitchCanvas(IModelLayoutCommon owner, ICanvas canvas)
    Parameters
    Type Name Description
    IModelLayoutCommon owner

    The owning context for this command

    ICanvas canvas

    The canvas the system will switch to running under

    SwitchCanvas(IModelLayoutCommon, Boolean)

    Creates a new SwitchCanvas command which will switch the system into the main system - no canvas

    Declaration
    public SwitchCanvas(IModelLayoutCommon owner, bool reset)
    Parameters
    Type Name Description
    IModelLayoutCommon owner

    The owning context for this command

    System.Boolean reset

    Indicates to switch into the main system

    Properties

    Description

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

    HasChildCommands

    True if this is the root command that lists all accessible canvases and the main system

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

    IconID

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

    Title

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

    Methods

    InternalCanExecute(Object)

    True if the owning host is the main form application instance

    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 owning host is the main form application instance

    Overrides
    EPCommand.InternalCanExecute(Object)

    InternalExecuteAsync(Object)

    Switches running the system into the specified canvas, or main system (no canvas), for this command

    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 this operation

    Overrides
    EPCommand.InternalExecuteAsync(Object)

    LoadChildrenAsync()

    Loads all the canvases this user has access to run in, along with the main system

    Declaration
    public override Task LoadChildrenAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A task indicating the completion of the operation

    Overrides
    EPCommand.LoadChildrenAsync()

    Switch(IModelLayoutCommon, ICanvas, Boolean)

    Switch the users context to the specified canvas, or main system, and perform a RefreshAll(IModelLayoutCommon) to run the system in that new canvas

    Declaration
    public static Task Switch(IModelLayoutCommon owner, ICanvas canvas, bool reset)
    Parameters
    Type Name Description
    IModelLayoutCommon owner

    The owning host this command runs within

    ICanvas canvas

    The canvas to switch running the system into. Can be null if switching to the main system.

    System.Boolean reset

    If true then will switch the system into running under the main system - no canvas

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task indicating the completion of the operation

    Implements

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

    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.