Esempio n. 1
0
 static void worker_WorkExecption(object sender, WorkEventArgs eventArgs)
 {
     Console.WriteLine($"Exception Raised : " + eventArgs.WorkerException.Message);
 }
Esempio n. 2
0
        //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()}");
        }