Ejemplo n.º 1
0
 protected override void ProcessItems(IEnumerable <MeetingDto> items)
 {
     base.ProcessItems(items);
     foreach (var item in items)
     {
         var notifier = new ActiveSleepNotifier(logger);
         notifier.NotifyAt(item,
                           () => { InfoBox.Show(Lng.Elem("Upcoming meeting"), item.ToString()); },
                           cancellationToken);
     }
 }
Ejemplo n.º 2
0
 protected override void ProcessItems(IEnumerable <EventDto> items)
 {
     base.ProcessItems(items);
     foreach (var item in items)
     {
         var notifier = new ActiveSleepNotifier(logger);
         notifier.NotifyAt(item,
                           () =>
         {
             if (!String.IsNullOrWhiteSpace(item.ApplicationToStart))
             {
                 executor.Execute(item.ApplicationToStart, item.Arguments);
             }
             else
             {
                 InfoBox.Show(Lng.Elem("Upcoming event"), item.ToString());
             }
         },
                           cancellationToken);
     }
 }