Class RefreshAll
This command executes the Refresh system command
Refreshes the entire application, closing all open layouts (discarding any pending changes), stops tracking any active executing tasks, reloads the local cache and redisplays the main menu
Inherited Members
Namespace: LemonEdge.Client.Core.Commands
Assembly: LemonEdge.ClientCore.dll
Syntax
[CommandDescriptorOptions(Command.Refresh, null)]
public class RefreshAll : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable
Constructors
RefreshAll(IRootController, IModelLayoutCommon)
Creates a new RefreshAll command
Declaration
public RefreshAll(IRootController root, IModelLayoutCommon owner)
Parameters
| Type | Name | Description |
|---|---|---|
| IRootController | root | The root controller, for service access. |
| IModelLayoutCommon | owner | The owning context for this command |
Methods
InternalCanExecute(object)
Returns true if the owning context host is the main form application
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| object | parameter | The command parameter |
Returns
| Type | Description |
|---|---|
| bool | True if the owning context host is the main form application |
Overrides
InternalExecuteAsync(object)
Refreshes the entire application, closing all open layouts (discarding any pending changes), stops tracking any active executing tasks, reloads the local cache and redisplays the main menu
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
RefreshMainform(IModelLayoutCommon)
Refreshes the entire application, closing all open layouts (discarding any pending changes), stops tracking any active executing tasks, reloads the local cache and redisplays the main menu
Declaration
public static Task RefreshMainform(IModelLayoutCommon owner)
Parameters
| Type | Name | Description |
|---|---|---|
| IModelLayoutCommon | owner | The main form application host context |
Returns
| Type | Description |
|---|---|
| Task | A task indicating the completion of the operation |