static void worker_WorkExecption(object sender, WorkEventArgs eventArgs) { Console.WriteLine($"Exception Raised : " + eventArgs.WorkerException.Message); }
//static void DoWork(WorkedPerformedHandler work) //{ // work.Invoke(10, WorkType.GotoMeeting); //} static void worker_WorkPerformed(object sender, WorkEventArgs eventArgs) { Console.WriteLine($"Worked Hours : {eventArgs.Hour} WorkType: { eventArgs.WorkType.ToString()}"); }