mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 03:57:27 +00:00
getting things in the right order for scheduling
This commit is contained in:
parent
c4755f23cd
commit
099e387570
2 changed files with 13 additions and 15 deletions
|
|
@ -102,7 +102,7 @@ namespace PepperDash.Essentials
|
|||
{
|
||||
if (!_roomScheduledEventGroup.ScheduledEvents.ContainsKey(scheduledEvent.Name))
|
||||
{
|
||||
SchedulerUtilities.CreateEventFromConfig(scheduledEvent, _roomScheduledEventGroup);
|
||||
SchedulerUtilities.CreateEventFromConfig(scheduledEvent, _roomScheduledEventGroup, HandleScheduledEvent);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -120,9 +120,7 @@ namespace PepperDash.Essentials
|
|||
|
||||
_roomScheduledEventGroup.DeleteEvent(roomEvent);
|
||||
|
||||
var tempEvent = SchedulerUtilities.CreateEventFromConfig(scheduledEvent, _roomScheduledEventGroup);
|
||||
|
||||
tempEvent.UserCallBack += HandleScheduledEvent;
|
||||
SchedulerUtilities.CreateEventFromConfig(scheduledEvent, _roomScheduledEventGroup, HandleScheduledEvent);
|
||||
}
|
||||
|
||||
public void AddOrUpdateScheduledEvent(ScheduledEventConfig scheduledEvent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue