Class Quit
This command executes the Quit system command
Quits the entire application and closes everything down. If there are any pending changes the user is prompted to cancel, or save those changes first.
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Commands
Assembly: ClientCore.dll
Syntax
[CommandDescriptorOptions(Commands.Quit, null)]
public class Quit : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable
Constructors
Quit(IModelLayoutCommon)
Creates a new Quit command
Declaration
public Quit(IModelLayoutCommon owner)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutCommon | owner | The owning context for this command |
Methods
InternalCanExecute(Object)
True if the host context is the main application form
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Boolean | True if the host context is the main application form |
Overrides
InternalExecuteAsync(Object)
Quits the entire application and closes everything down. If there are any pending changes the user is prompted to cancel, or save those changes first.
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
QuitApplication(IModelLayouHost)
Quits the entire application and closes everything down. If there are any pending changes the user is prompted to cancel, or save those changes first.
Declaration
public static Task<bool> QuitApplication(IModelLayouHost host)
Parameters
Type | Name | Description |
---|---|---|
IModelLayouHost | host | The main context to quit the application from. Needs to be the main application form |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | True if the application was closed, false if the user cancelled |