Esempio n. 1
0
        protected virtual void OnWorkCompleted(int hours)
        {
            WorkPerformedEventArgs wpea = new WorkPerformedEventArgs {
                Hours = hours
            };

            WorkCompleted?.Invoke(this, wpea);
        }
Esempio n. 2
0
 private static void Workcompleted(object?sender, WorkPerformedEventArgs e)
 {
     Console.WriteLine($"workcompleted and the number of hours is {e.Hours}");
 }