public static void BackToOwnerAll(EmployeeManager Employees) { for(int i = Employees.getList().Count - 1; i >= 0; i--) { Employees.getList()[i].Share = false; if (Employees.getList()[i].WorkPlace == null) continue; Employees.getList()[i].WorkPlace.getList().Remove(Employees.getList()[i]); } }
public static void RemoveAll(EmployeeManager WorkPlace) { if (WorkPlace.getCount() <= 0) return; for(int i = 1; i < WorkPlace.getCount(); i++) { BackToOwner(WorkPlace.getList()[0]); } }
public static void KillAll(EmployeeManager Employees) { HumanResource.add(Employees.getList().Count); Employees.getList().Clear(); }