示例#1
0
        public void LoadCollections()
        {
            Areas.Clear();
            Operations.Clear();
            Personal.Clear();
            Shifts.Clear();

            foreach (var area in _collectionsRepository.LoadWorkAreas())
            {
                Areas.Add(area);
            }

            foreach (var operation in _collectionsRepository.LoadWorks())
            {
                Operations.Add(operation);
            }

            foreach (var employee in _collectionsRepository.LoadPersonal())
            {
                Personal.Add(employee);
            }

            foreach (var shift in _collectionsRepository.LoadShiftSet())
            {
                Shifts.Add(shift);
            }
        }
示例#2
0
 public Persona ContratarPersonal(Persona empleado)
 {
     Personal.Add(empleado);
     return(empleado);
 }
示例#3
0
 public Recepcionista ContratarPersonal(Recepcionista empleado)
 {
     Personal.Add(empleado);
     return(empleado);
 }