// Invoke the Changed event; called whenever list changes protected virtual void OnUpdate(TaskAddEventArgs e) { if (Update != null) { Update(this, e); } }
// Invoke the Changed event; called whenever list changes protected virtual void OnAdd(TaskAddEventArgs e) { if (Add != null) { Add(this, e); } }
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); }