Class TransactionSettingsEdit
A view command that allows the editing of the settings (ascertained from SettingsTypeID) associated with a transaction
The SettingTypeID entity type id must implement IHasTransactionSetting
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Commands.ViewCommands
Assembly: ClientCore.dll
Syntax
public class TransactionSettingsEdit : ViewCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
TransactionSettingsEdit(IModelLayoutCommon, Func<(IEntityUpdaterUI Updater, ITransaction Transaction)>)
Creates a new TransactionSettingsEdit
Declaration
public TransactionSettingsEdit(IModelLayoutCommon host, Func<(IEntityUpdaterUI Updater, ITransaction Transaction)> getTransactionInfo)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutCommon | host | The host context this command operates within |
System.Func<System.ValueTuple<IEntityUpdaterUI, ITransaction>> | getTransactionInfo | A function that returns the info for the transaction to have its settings edited for |
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
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 transaction to be edited has a SettingsTypeID set (automatically set from SettingsTypeID config) and is not currently cancelled
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 transaction to be edited has a SettingsTypeID set (automatically set from SettingsTypeID config) and is not currently cancelled |
Overrides
InternalExecuteAsync(Object)
Gets the transaction to have its settings edited and loads the settings screen for the specified entity SettingsTypeID as a popup window
The SettingTypeID entity type id must implement IHasTransactionSetting
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 |