Пример #1
0
 public TeamLead(string name, List <ISubordinate> subordinates)
 {
     EmployeeInfo  = new DAL.Entities.Employee.Employee(name);
     Id            = EmployeeInfo.Id;
     _subordinates = subordinates;
     EmployeesManager.AllTeamLeads.Add(Id, this);
     EmployeeData.AllEmployees.Add(Id, EmployeeInfo);
 }
Пример #2
0
 public Employee(string name, IDirector director)
 {
     EmployeeInfo = new DAL.Entities.Employee.Employee(name);
     Id           = EmployeeInfo.Id;
     _director    = director;
     _director.AddNewSubordinate(this);
     EmployeesManager.AllOrdinaryEmployees.Add(Id, this);
     EmployeeData.AllEmployees.Add(Id, EmployeeInfo);
 }
Пример #3
0
 public Director(string name, IDirector director, List <ISubordinate> subordinates)
 {
     EmployeeInfo  = new DAL.Entities.Employee.Employee(name);
     Id            = EmployeeInfo.Id;
     _director     = director;
     _subordinates = subordinates;
     _director.AddNewSubordinate(this);
     EmployeesManager.AllDirectors.Add(Id, this);
     EmployeeData.AllEmployees.Add(Id, EmployeeInfo);
 }