Class CloseOtherTabs
This command executes the CloseOtherTabs system command
Closes all other open layouts that have no pending changes
Implements
System.Windows.Input.ICommand
System.IDisposable
Inherited Members
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.CloseOtherTabs, null)]
public class CloseOtherTabs : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable
Constructors
CloseOtherTabs(IModelLayoutCommon)
Creates a new CloseOtherTabs command
Declaration
public CloseOtherTabs(IModelLayoutCommon owner)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutCommon | owner | The owning context for this command |
Methods
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 |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Boolean | 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 |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of the operation |
Overrides
Implements
System.Windows.Input.ICommand
System.IDisposable