Exemplo n.º 1
0
		public virtual void EmployeeProjectRemove( CsModelObjects.EmployeeProject val ) {
			
			this.LoadPrEmployeeProjects();
			this._deletedEmployeeProjects.Add(val);
			this._EmployeeProjects.Remove(val);

        }
Exemplo n.º 2
0
 public virtual void PrEmployeeProjectAdd(CsModelObjects.EmployeeProject val)
 {
     // 1-Many , add a single item!
     this.LoadPrEmployeeProjects();
     val.PrEPProjectId = this.PrProjectId;
     this.IDChanged   += val.handleParentIdChanged;
     this._EmployeeProjects.Add(val);
 }
Exemplo n.º 3
0
        /// <summary>
        /// Private method to add to the EmployeeProjects List.
        /// The list must have aldready been initialized
        /// </summary>
        private void addToEmployeeProjectsList(IEnumerable <CsModelObjects.EmployeeProject> value)
        {
            IEnumerator <CsModelObjects.EmployeeProject> enumtor = value.GetEnumerator();

            while (enumtor.MoveNext())
            {
                CsModelObjects.EmployeeProject v = enumtor.Current;
                v.IDChanged += this.handleParentIdChanged;
                this._EmployeeProjects.Add(v);
            }
        } //End Sub