Class ViewSystemItems
A toggle view command that toggles between viewing system items as well, or just non-system items.
System items are defined as those implementing IHasVersion with IsSystem set to true
Implements the filter by setting InternalFilter accordinglyInheritance
System.Object
ViewSystemItems
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 ViewSystemItems : SingleToggleCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
ViewSystemItems(IBaseGridController)
Creates a new ViewSystemItems
Declaration
public ViewSystemItems(IBaseGridController controller)
Parameters
Type | Name | Description |
---|---|---|
IBaseGridController | controller | The grid control that hosts the collection of entities that can have system items amongst them |
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 betwen viewing system items or not
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | THe command parameter |
Returns
Type | Description |
---|---|
System.Boolean | False |
Overrides
InternalExecuteAsync(Object)
Toggles between viewing system items as well, or just non-system items.
System items are defined as those implementing IHasVersion with IsSystem set to true
Implements the filter by setting InternalFilter accordingly, and calling 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