protected virtual void EmpOnShift(Employee emp, int index4Shift)
 {
     //Phase II if employee is already on the shift
     //***Check if subscriber (listener) will handle this event
     //Invoke the delegate.  The handler will know which employee and which shift it is.
     OnShift?.Invoke(emp, index4Shift);
 }
Ejemplo n.º 2
0
 protected virtual void EmpOnShift(Employee emp, int index4Shift)
 {
     if (OnShift != null)
     {
         //Invokes the delegates.
         // if the test succeeds call the event handler method with the ”emp” object as parameter
         OnShift?.Invoke(emp, index4Shift);
     }
 }