mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 20:47:04 +00:00
ecs 561, 593, 594
This commit is contained in:
parent
b423d1cb58
commit
dd5253301b
4 changed files with 18 additions and 11 deletions
|
|
@ -87,6 +87,8 @@ namespace PepperDash.Essentials.Devices.Displays
|
||||||
void Init()
|
void Init()
|
||||||
{
|
{
|
||||||
WarmupTime = 10000;
|
WarmupTime = 10000;
|
||||||
|
CooldownTime = 8000;
|
||||||
|
|
||||||
CommunicationMonitor = new GenericCommunicationMonitor(this, Communication, 2000, 120000, 300000, StatusGet);
|
CommunicationMonitor = new GenericCommunicationMonitor(this, Communication, 2000, 120000, 300000, StatusGet);
|
||||||
DeviceManager.AddDevice(CommunicationMonitor);
|
DeviceManager.AddDevice(CommunicationMonitor);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ namespace PepperDash.Essentials
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
ModalDialog WarmingCoolingModal;
|
//ModalDialog WarmingCoolingModal;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents
|
/// Represents
|
||||||
|
|
@ -1120,14 +1120,16 @@ namespace PepperDash.Essentials
|
||||||
{
|
{
|
||||||
if (CurrentRoom.IsWarmingUpFeedback.BoolValue)
|
if (CurrentRoom.IsWarmingUpFeedback.BoolValue)
|
||||||
{
|
{
|
||||||
WarmingCoolingModal = new ModalDialog(TriList);
|
ShowNotificationRibbon("Room is powering on. Please wait...", 0);
|
||||||
WarmingCoolingModal.PresentModalDialog(0, "Powering Up", "Power", "<p>Room is powering up</p><p>Please wait</p>",
|
//WarmingCoolingModal = new ModalDialog(TriList);
|
||||||
"", "", false, false, null);
|
//WarmingCoolingModal.PresentModalDialog(0, "Powering Up", "Power", "<p>Room is powering up</p><p>Please wait</p>",
|
||||||
|
// "", "", false, false, null);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (WarmingCoolingModal != null)
|
ShowNotificationRibbon("Room is powered on. Welcome.", 2000);
|
||||||
WarmingCoolingModal.CancelDialog();
|
//if (WarmingCoolingModal != null)
|
||||||
|
// WarmingCoolingModal.CancelDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1140,14 +1142,17 @@ namespace PepperDash.Essentials
|
||||||
{
|
{
|
||||||
if (CurrentRoom.IsCoolingDownFeedback.BoolValue)
|
if (CurrentRoom.IsCoolingDownFeedback.BoolValue)
|
||||||
{
|
{
|
||||||
WarmingCoolingModal = new ModalDialog(TriList);
|
ShowNotificationRibbon("Room is powering off. Please wait.", 0);
|
||||||
WarmingCoolingModal.PresentModalDialog(0, "Shut Down", "Power", "<p>Room is shutting down</p><p>Please wait</p>",
|
|
||||||
"", "", false, false, null);
|
//WarmingCoolingModal = new ModalDialog(TriList);
|
||||||
|
//WarmingCoolingModal.PresentModalDialog(0, "Power Off", "Power", "<p>Room is powering off</p><p>Please wait</p>",
|
||||||
|
// "", "", false, false, null);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (WarmingCoolingModal != null)
|
HideNotificationRibbon();
|
||||||
WarmingCoolingModal.CancelDialog();
|
//if (WarmingCoolingModal != null)
|
||||||
|
// WarmingCoolingModal.CancelDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue