Inheritance: NamedObject
Esempio n. 1
0
		public void UpdateEmployee(Employee employee)
		{			
			GetEmployee(employee.ID).Update(employee);
		}
Esempio n. 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);
		}
Esempio n. 3
0
		internal void RemoveEmployee(Employee employee)
		{
			_employees.Remove(employee);
		}
Esempio n. 4
0
		internal void AddEmployee(Employee employee)
		{
			employee.Department = this;
			_employees.Add(employee);
		}
Esempio n. 5
0
		internal void Add(Employee employee)
		{
			if (null == employee)
			{
				throw new ArgumentNullException("employee");
			}

			lock (InnerList.SyncRoot)
			{
				InnerList.Add(employee);
			}
		}
Esempio n. 6
0
		internal void Update(Employee other)
		{
			base.Update(other);
		}