Наследование: NamedObject
Пример #1
0
		public void UpdateEmployee(Employee employee)
		{			
			GetEmployee(employee.ID).Update(employee);
		}
Пример #2
0
		public void AddEmployee(Employee employee)
		{
			if (null == employee)
			{
				throw new ArgumentNullException("employee");
			}

			Department department = employee.Department;
			if (null == department)
			{
				throw new ArgumentException("Employee.Department must be set!", "employee");
			}

			// map it to the correct department object			
			_departments[department.ID].AddEmployee(employee);
			RegisterObject(employee);
		}
Пример #3
0
		internal void RemoveEmployee(Employee employee)
		{
			_employees.Remove(employee);
		}
Пример #4
0
		internal void AddEmployee(Employee employee)
		{
			employee.Department = this;
			_employees.Add(employee);
		}
Пример #5
0
		internal void Add(Employee employee)
		{
			if (null == employee)
			{
				throw new ArgumentNullException("employee");
			}

			lock (InnerList.SyncRoot)
			{
				InnerList.Add(employee);
			}
		}
Пример #6
0
		internal void Update(Employee other)
		{
			base.Update(other);
		}