mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
fix: add missing event registration
This commit is contained in:
parent
88a16b577b
commit
1b9f16ea74
1 changed files with 11 additions and 18 deletions
|
|
@ -17,21 +17,6 @@ namespace PepperDash.Essentials.Core.UI
|
||||||
protected CrestronTouchpanelPropertiesConfig _config;
|
protected CrestronTouchpanelPropertiesConfig _config;
|
||||||
public BasicTriListWithSmartObject Panel { get; private set; }
|
public BasicTriListWithSmartObject Panel { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Constructor for pre-created Panel. This constructor attempts to load the SGD file from the provided SGD path and subscribes to the
|
|
||||||
/// `SigChange` event for the provided panel.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="key">Essentials Device Key</param>
|
|
||||||
/// <param name="name">Essentials Device Name</param>
|
|
||||||
/// <param name="tsw">Provided TSW Panel</param>
|
|
||||||
/// <param name="sgdPath">Path to SGD file</param>
|
|
||||||
protected TouchpanelBase(string key, string name, Tswx52ButtonVoiceControl tsw, string sgdPath)
|
|
||||||
:base(key, name)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor for use with device Factory. A touch panel device will be created based on the provided IP-ID and the
|
/// Constructor for use with device Factory. A touch panel device will be created based on the provided IP-ID and the
|
||||||
/// type of the panel. The SGD File path can be specified using the config property, or a default one located in the program directory if none
|
/// type of the panel. The SGD File path can be specified using the config property, or a default one located in the program directory if none
|
||||||
|
|
@ -47,6 +32,8 @@ namespace PepperDash.Essentials.Core.UI
|
||||||
{
|
{
|
||||||
Panel = panel;
|
Panel = panel;
|
||||||
|
|
||||||
|
Panel.SigChange += Panel_SigChange;
|
||||||
|
|
||||||
if (Panel is TswFt5ButtonSystem)
|
if (Panel is TswFt5ButtonSystem)
|
||||||
{
|
{
|
||||||
var tsw = Panel as TswFt5ButtonSystem;
|
var tsw = Panel as TswFt5ButtonSystem;
|
||||||
|
|
@ -116,6 +103,14 @@ namespace PepperDash.Essentials.Core.UI
|
||||||
protected abstract void SetupPanelDrivers(string roomKey);
|
protected abstract void SetupPanelDrivers(string roomKey);
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Event handler for System Extender Events
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="currentDeviceExtender"></param>
|
||||||
|
/// <param name="args"></param>
|
||||||
|
protected abstract void ExtenderSystemReservedSigs_DeviceExtenderSigChange(DeviceExtender currentDeviceExtender, SigEventArgs args);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -167,7 +162,5 @@ namespace PepperDash.Essentials.Core.UI
|
||||||
if(uo is Action<bool>)
|
if(uo is Action<bool>)
|
||||||
(uo as Action<bool>)(args.Button.State == eButtonState.Pressed);
|
(uo as Action<bool>)(args.Button.State == eButtonState.Pressed);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract void ExtenderSystemReservedSigs_DeviceExtenderSigChange(DeviceExtender currentDeviceExtender, SigEventArgs args);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue