示例#1
0
 // Invoke the Changed event; called whenever list changes
 protected virtual void OnUpdate(TaskAddEventArgs e)
 {
     if (Update != null)
     {
         Update(this, e);
     }
 }
示例#2
0
 // Invoke the Changed event; called whenever list changes
 protected virtual void OnAdd(TaskAddEventArgs e)
 {
     if (Add != null)
     {
         Add(this, e);
     }
 }
示例#3
0
 public void TaskScheduler_Schedule(object sender, TaskAddEventArgs e)
 {
     ScheduleTask(e.Task);
 }
 static void ConsoleTaskEventNotifier_Add(object sender, TaskAddEventArgs e)
 {
     Console.WriteLine("Task id added: {0}", e.Task.ID);
 }