Class CancelTransaction
Inheritance
System.Object
CancelTransaction
Implements
System.IDisposable
System.Windows.Input.ICommand
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()
Assembly: ClientCore.dll
Syntax
public class CancelTransaction : ViewCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
CancelTransaction(IModelLayoutDisplayer, IGridSelector)
Creates a new CancelTransaction
Declaration
public CancelTransaction(IModelLayoutDisplayer owner, IGridSelector view = null)
Parameters
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
Declaration
public override string ToolTip { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Methods
InternalCanExecute(Object)
Returns true if the transaction to cancel (either from the layout or selected grid items) are currently finalized
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 cancel (either from the layout or selected grid items) are currently finalized
|
Overrides
InternalExecuteAsync(Object)
Gets the transaction(s) to be cancelled, and prompts the user with a warning. If the user accepts the change then all the transactions are marked as cancelled and saved. The save process takes care of the cancelling operation itself.
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.IDisposable
System.Windows.Input.ICommand
Extension Methods