Class CloseOtherTabs
This command executes the CloseOtherTabs system command
Closes all other open layouts that have no pending changes
Inherited Members
Namespace: LemonEdge.Client.Core.Commands
Assembly: LemonEdge.ClientCore.dll
Syntax
[CommandDescriptorOptions(Command.CloseOtherTabs, null)]
public class CloseOtherTabs : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable
Constructors
CloseOtherTabs(IRootController, IModelLayoutCommon)
Creates a new CloseOtherTabs command
Declaration
public CloseOtherTabs(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
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
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
Methods
CloseAllOtherTabs(IModelLayoutDisplayer, IModelLayoutCommon)
Declaration
public static Task CloseAllOtherTabs(IModelLayoutDisplayer layout, IModelLayoutCommon owner)
Parameters
| Type | Name | Description |
|---|---|---|
| IModelLayoutDisplayer | layout | |
| IModelLayoutCommon | owner |
Returns
| Type | Description |
|---|---|
| Task |
InternalCanExecute(object)
Returns true if there is a current active tab, and other tabs also open that do not have pending changes
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| object | parameter | The command parameter |
Returns
| Type | Description |
|---|---|
| bool | True if there is a current active tab, and other tabs also open that do not have pending changes |
Overrides
InternalExecuteAsync(object)
Closes all other open tabs, apart from the current active one, that do not have any pending changes associated with them
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 |