Exemplo n.º 1
0
 protected override void OnEmployeeLayOff(EmployeeLayOffEventArgs e)
 {
     if (e.Cause == LayOffCause.target)
     {
         base.OnEmployeeLayOff(e);
     }
 }
Exemplo n.º 2
0
 ///CallBackMethod
 public void RemoveStaff(object sender, EmployeeLayOffEventArgs e)
 {
     if (sender is Employee em)
     {
         if (e.Cause == LayOffCause.above60 || e.Cause == LayOffCause.noStock || e.Cause == LayOffCause.resign || e.Cause == LayOffCause.target)
         {
             Staff.Remove(em);
             em.EmployeeLayOff -= RemoveStaff;
         }
     }
 }
Exemplo n.º 3
0
 ///CallBackMethod
 public void RemoveMember(object sender, EmployeeLayOffEventArgs e)
 {
     if (sender is Employee em)
     {
         if (e.Cause == LayOffCause.noStock || e.Cause == LayOffCause.target)
         {
             Members.Remove(em);
             em.EmployeeLayOff -= RemoveMember;
         }
     }
 }
Exemplo n.º 4
0
 protected virtual void OnEmployeeLayOff(EmployeeLayOffEventArgs e)
 {
     EmployeeLayOff?.Invoke(this, e);
 }