コード例 #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);
     }
 }
コード例 #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);
     }
 }