Class Hotkey
Represents a key or combination of keys that changes the suspension status of a ProfileConfiguration
Implements
Namespace: Artemis.Core
Assembly: Artemis.Core.dll
Syntax
public class Hotkey : CorePropertyChanged, IStorageModel
Constructors
Hotkey()
Creates a new instance of Hotkey
Declaration
public Hotkey()
Hotkey(ProfileConfigurationHotkeyEntity)
Creates a new instance of Hotkey based on the provided entity
Declaration
public Hotkey(ProfileConfigurationHotkeyEntity entity)
Parameters
| Type | Name | Description |
|---|---|---|
| ProfileConfigurationHotkeyEntity | entity |
Properties
Entity
Gets the entity used to store this hotkey
Declaration
public ProfileConfigurationHotkeyEntity Entity { get; }
Property Value
| Type | Description |
|---|---|
| ProfileConfigurationHotkeyEntity |
Key
Gets or sets the KeyboardKey of the hotkey
Declaration
public KeyboardKey? Key { get; set; }
Property Value
| Type | Description |
|---|---|
| KeyboardKey? |
Modifiers
Gets or sets the KeyboardModifierKeys of the hotkey
Declaration
public KeyboardModifierKey? Modifiers { get; set; }
Property Value
| Type | Description |
|---|---|
| KeyboardModifierKey? |
Methods
Load()
Loads the model from its associated entity
Declaration
public void Load()
MatchesEventArgs(ArtemisKeyboardKeyEventArgs)
Determines whether the provided ArtemisKeyboardKeyEventArgs match the hotkey
Declaration
public bool MatchesEventArgs(ArtemisKeyboardKeyEventArgs eventArgs)
Parameters
| Type | Name | Description |
|---|---|---|
| ArtemisKeyboardKeyEventArgs | eventArgs |
Returns
| Type | Description |
|---|---|
| bool |
Save()
Saves the model to its associated entity
Declaration
public void Save()