void Items_Reminding(object sender, ProgrammeRemindingEventArgs e) { EventHandler <ProgrammeRemindingEventArgs> eventHandler = Reminding; if (eventHandler != null) { eventHandler(this, e); } }
static void prog_Reminding(object sender, ProgrammeRemindingEventArgs e) { Console.WriteLine("{0} {1}", e.Item.Content, e.Item.PlannedTime); WaitHandle.Set(); }