예제 #1
0
    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]);
        }
    }
예제 #2
0
    public static void RemoveAll(EmployeeManager WorkPlace)
    {
        if (WorkPlace.getCount() <= 0) return;

        for(int i = 1; i < WorkPlace.getCount(); i++)
        {
            BackToOwner(WorkPlace.getList()[0]);
        }
    }
예제 #3
0
 public static void KillAll(EmployeeManager Employees)
 {
     HumanResource.add(Employees.getList().Count);
     Employees.getList().Clear();
 }