mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-27 03:14:57 +00:00
Merge remote-tracking branch 'origin/bugfix/ecs-535' into bugfix/ecs-541
This commit is contained in:
@@ -87,6 +87,8 @@ namespace PepperDash.Essentials.Devices.Displays
|
||||
void Init()
|
||||
{
|
||||
WarmupTime = 10000;
|
||||
CooldownTime = 8000;
|
||||
|
||||
CommunicationMonitor = new GenericCommunicationMonitor(this, Communication, 2000, 120000, 300000, StatusGet);
|
||||
DeviceManager.AddDevice(CommunicationMonitor);
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ namespace PepperDash.Essentials
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
ModalDialog WarmingCoolingModal;
|
||||
//ModalDialog WarmingCoolingModal;
|
||||
|
||||
/// <summary>
|
||||
/// Represents
|
||||
@@ -1120,14 +1120,16 @@ namespace PepperDash.Essentials
|
||||
{
|
||||
if (CurrentRoom.IsWarmingUpFeedback.BoolValue)
|
||||
{
|
||||
WarmingCoolingModal = new ModalDialog(TriList);
|
||||
WarmingCoolingModal.PresentModalDialog(0, "Powering Up", "Power", "<p>Room is powering up</p><p>Please wait</p>",
|
||||
"", "", false, false, null);
|
||||
ShowNotificationRibbon("Room is powering on. Please wait...", 0);
|
||||
//WarmingCoolingModal = new ModalDialog(TriList);
|
||||
//WarmingCoolingModal.PresentModalDialog(0, "Powering Up", "Power", "<p>Room is powering up</p><p>Please wait</p>",
|
||||
// "", "", false, false, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (WarmingCoolingModal != null)
|
||||
WarmingCoolingModal.CancelDialog();
|
||||
ShowNotificationRibbon("Room is powered on. Welcome.", 2000);
|
||||
//if (WarmingCoolingModal != null)
|
||||
// WarmingCoolingModal.CancelDialog();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1140,14 +1142,17 @@ namespace PepperDash.Essentials
|
||||
{
|
||||
if (CurrentRoom.IsCoolingDownFeedback.BoolValue)
|
||||
{
|
||||
WarmingCoolingModal = new ModalDialog(TriList);
|
||||
WarmingCoolingModal.PresentModalDialog(0, "Shut Down", "Power", "<p>Room is shutting down</p><p>Please wait</p>",
|
||||
"", "", false, false, null);
|
||||
ShowNotificationRibbon("Room is powering off. Please wait.", 0);
|
||||
|
||||
//WarmingCoolingModal = new ModalDialog(TriList);
|
||||
//WarmingCoolingModal.PresentModalDialog(0, "Power Off", "Power", "<p>Room is powering off</p><p>Please wait</p>",
|
||||
// "", "", false, false, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (WarmingCoolingModal != null)
|
||||
WarmingCoolingModal.CancelDialog();
|
||||
HideNotificationRibbon();
|
||||
//if (WarmingCoolingModal != null)
|
||||
// WarmingCoolingModal.CancelDialog();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user