Beispiel #1
0
 private void OnScheduleTriggered(int burstCount, int burstLeft, bool isFinalBurst)
 {
     if (ScheduleTriggered != null)
     {
         var arguments = new ScheduleTriggeredEventArgs(Packet, burstCount, burstLeft, isFinalBurst);
         ScheduleTriggered(this, arguments);
         if (arguments.Cancel)
         {
             IsRunning = false;
         }
     }
 }
Beispiel #2
0
 private void OnScheduleTriggered(object sender, ScheduleTriggeredEventArgs e)
 {
     if (ScheduleTriggered != null)
     {
         ScheduleTriggered(sender, e);
         if (e.Cancel)
         {
             SchedulesRunning--;
             _bySchedule[(HSchedule)sender].SubItems[4].Text = StatusSTOPPED;
         }
     }
 }