Esempio n. 1
0
        public void UpdateReminderList(IList <ReminderEntity> upToDateReminders)
        {
            NextReminderNotifier.UpdateReminderList(upToDateReminders);

            //UserInteractionManager is indirectly updated from events of NextReminderNotifier. When a reminder is changed it will fire a new event for it.
            //UserInteractionManager.UpdateReminderList(upToDateReminders);
        }
Esempio n. 2
0
        public ReminderScheduler()
        {
            Log.Logger.Information($"Creating ReminderScheduler");

            IsEnabled = false;

            NextReminderNotifier   = new NextReminderNotifier();
            UserInteractionManager = new UserInteractionManager();

            NextReminderNotifier.ReminderElapsed += UserInteractionManager.OnReminderElapsed;
            UserInteractionManager.RingingNeeded += OnRingingNeeded;

            Log.Logger.Information($"Creating ReminderScheduler done");
        }