Class Notifications
This command executes the Notifications system tool window command
Opens the notifications tool window which can show all automated notifications sent to you via the system that have not been dismissed
This is a global list, the tool window does not change depending on the currently active layoutInheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Commands.ToolWindows
Assembly: LemonEdge.ClientCore.dll
Syntax
[CommandDescriptorOptions(Command.Notifications, null)]
public class Notifications : ToolWindowToggler, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
Notifications(IRootController, IModelLayoutCommon)
Creates a new Notifications tool window command
Declaration
public Notifications(IRootController root, IModelLayoutCommon host)
Parameters
Type | Name | Description |
---|---|---|
IRootController | root | The root controller, for service access. |
IModelLayoutCommon | host | The context host this command operates within |
Properties
Description
A user friendly description of this command
Declaration
public override string Description { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
DisplayableToolWindowItemType
Returns the NotificationsToolWindow type
Declaration
protected override Type DisplayableToolWindowItemType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
IconID
Declaration
public override Guid IconID { get; }
Property Value
Type | Description |
---|---|
Guid |
Overrides
SubscribeToLayoutChange
This tool window shows data globally for the user, it does not react to different layouts, and thus returns false for this
Declaration
protected override bool SubscribeToLayoutChange { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Title
The title of this command
Declaration
public override string Title { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ToolTip
A user friendly tool tip for this command functionality, by default the Description
Declaration
public override string ToolTip { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
CreateDisplayableItem(IModelLayoutDisplayer)
Returns a new NotificationsToolWindow
Declaration
protected override ToolWindowItem CreateDisplayableItem(IModelLayoutDisplayer activeLayout)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutDisplayer | activeLayout | The currently active layout |
Returns
Type | Description |
---|---|
ToolWindowItem | A new NotificationsToolWindow |
Overrides
InternalCanExecuteAsync(object)
This command is only executable if there are more than 0 notifications for the user to see
Declaration
public override Task<bool> InternalCanExecuteAsync(object parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | The command parameter |
Returns
Type | Description |
---|---|
Task<bool> | True if there are more than 0 notifications for the user to see |