mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +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()
|
||||
{
|
||||
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.
Loading…
Add table
Add a link
Reference in a new issue