Search Results for

    Show / Hide Table of Contents

    Class SwitchTheme

    This command executes the Theme system command

    Lists all themes the user has access to as child commands.

    Switches the theme the current user is running in, and prompts if they want to quit the application and restart in order to load in the UI changes
    Inheritance
    object
    BaseHasChildren<EPCommandWithDescriptor>
    EPCommand
    EPCommandWithDescriptor
    SwitchTheme
    Implements
    IHasChildren<EPCommandWithDescriptor>
    IHasChildren
    IDisposable
    IEPCommandWithDescriptor
    IEPCommand
    ICommand
    ICommandDescriptor
    Inherited Members
    EPCommandWithDescriptor.OverlayIconID
    EPCommandWithDescriptor.Type
    EPCommandWithDescriptor.ToolTip
    EPCommandWithDescriptor.Parameter
    EPCommandWithDescriptor.HelpURL
    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.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.Theme, null)]
    public class SwitchTheme : EPCommandWithDescriptor, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor

    Constructors

    SwitchTheme(IRootController, IModelLayoutCommon, Theme, IThemeSettings)

    Creates a new SwitchTheme command that switches the current theme to the specified one and prompts if they want to quit the application and restart in order to load in the UI changes

    Declaration
    protected SwitchTheme(IRootController root, IModelLayoutCommon owner, Theme theme, IThemeSettings settings)
    Parameters
    Type Name Description
    IRootController root

    The root controller, for service access.

    IModelLayoutCommon owner

    The owning context for this command

    Theme theme

    The new theme to run the entire system under

    IThemeSettings settings

    SwitchTheme(IRootController, IModelLayoutCommon, IThemeSettings)

    Creates a new SwitchTheme command that lists all themes the user has access to as child commands.

    Declaration
    public SwitchTheme(IRootController root, IModelLayoutCommon owner, IThemeSettings themeSettings)
    Parameters
    Type Name Description
    IRootController root

    The root controller, for service access.

    IModelLayoutCommon owner

    The owning context for this command

    IThemeSettings themeSettings

    Properties

    Description

    A user friendly description of this command

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

    HasChildCommands

    True if this is the root command listing all possible themes as children

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

    IconID

    The image to use for this command, either a ImageType or ImageID

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

    Theme

    The theme this command will switch to

    Declaration
    public Theme? Theme { get; }
    Property Value
    Type Description
    Theme?

    Title

    The title of this command

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

    Methods

    InternalCanExecute(object)

    True if the command is running with an owner of the main application form

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

    The command parameter

    Returns
    Type Description
    bool

    True if the command is running with an owner of the main application form

    Overrides
    EPCommand.InternalCanExecute(object?)

    InternalExecuteAsync(object)

    Switches the theme the current user is running in to the specified one, and prompts if they want to quit the application and restart in order to load in the UI changes

    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)

    Switch(IModelLayoutCommon, Theme?)

    Switches the theme the current user is running in to the specified one, and prompts if they want to quit the application and restart in order to load in the UI changes

    Declaration
    public Task Switch(IModelLayoutCommon owner, Theme? theme)
    Parameters
    Type Name Description
    IModelLayoutCommon owner

    The owning context this command runs in

    Theme? theme

    The new theme to switch running the application under

    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.