Class ViewCancelledItems
A view command that toggles the standard filter for a grid of transaction items between showing and hiding transactions with a status of Cancelled.
The default view is to hide cancelled entries and sets the InternalFilter accordingly
Inheritance
System.Object
ViewCancelledItems
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()
Namespace: LemonEdge.Client.Core.Commands.ViewCommands
Assembly: ClientCore.dll
Syntax
public class ViewCancelledItems : SingleToggleCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
ViewCancelledItems(IBaseGridController)
Creates a new ViewCancelledItems command
Declaration
public ViewCancelledItems(IBaseGridController controller)
Parameters
| Type | Name | Description |
|---|---|---|
| IBaseGridController | controller | The grid controller displaying transactional entities |
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)
True - can always toggle between showing/hiding cancelled transactions
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | parameter | The command parameter |
Returns
| Type | Description |
|---|---|
| System.Boolean | True |
Overrides
InternalExecuteAsync(Object)
Toggles the InternalFilter between hiding transactions with a status of Cancelled and not
Then refreshes the display of the grid using Redisplay()
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