Class ResetLayout
Resets the configured layout to the default system one - you'll need to close and open the layout if it is already open.
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Commands.ViewCommands
Assembly: ClientCore.dll
Syntax
public class ResetLayout : ViewCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
ResetLayout(IGridSelector, IModelLayoutDisplayer)
Creates a new ResetLayout command
Declaration
public ResetLayout(IGridSelector view, IModelLayoutDisplayer displayer)
Parameters
Type | Name | Description |
---|---|---|
IGridSelector | view | The grid of ILayout this command interacts with |
IModelLayoutDisplayer | displayer | The parent context the command operates within |
Properties
Description
Declaration
public override string Description { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
IconID
Declaration
public override Guid IconID { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Overrides
IncludeInSimple
Declaration
public override bool IncludeInSimple { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
OverlayIconID
Declaration
public override Guid? OverlayIconID { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
Overrides
Title
Declaration
public override string Title { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
ToolTip
Declaration
public override string ToolTip { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
InternalCanExecute(Object)
Returns true if the grid has any selected ILayout rows
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The comand parameter |
Returns
Type | Description |
---|---|
System.Boolean | True if the grid has any selected ILayout rows |
Overrides
InternalExecuteAsync(Object)
Resets the configured layout to the default system one - you'll need to close and open the layout if it is already open.
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
Reset(ILayout, IModelLayoutDisplayer)
Resets the configured layout to the default system one - you'll need to close and open the layout if it is already open.
Declaration
public static Task Reset(ILayout layout, IModelLayoutDisplayer displayer)
Parameters
Type | Name | Description |
---|---|---|
ILayout | layout | The configrued layout to reset to the default system one if there is one |
IModelLayoutDisplayer | displayer | The context within which this command operates |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of the operation |