/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { ILimit limitItem = item.As <ILimit>(); if (((limitItem != null) && this._parent.Limits.Remove(limitItem))) { return(true); } ICompatibleUnit compatibleUnitItem = item.As <ICompatibleUnit>(); if (((compatibleUnitItem != null) && this._parent.CompatibleUnits.Remove(compatibleUnitItem))) { return(true); } IProcedureDataSet procedureDataSetItem = item.As <IProcedureDataSet>(); if (((procedureDataSetItem != null) && this._parent.ProcedureDataSets.Remove(procedureDataSetItem))) { return(true); } IUserAttribute userAttributeItem = item.As <IUserAttribute>(); if (((userAttributeItem != null) && this._parent.ProcedureValues.Remove(userAttributeItem))) { return(true); } return(false); }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { ICompatibleUnit compatibleUnitsCasted = item.As <ICompatibleUnit>(); if ((compatibleUnitsCasted != null)) { this._parent.CompatibleUnits.Add(compatibleUnitsCasted); } if ((this._parent.Status == null)) { IStatus statusCasted = item.As <IStatus>(); if ((statusCasted != null)) { this._parent.Status = statusCasted; return; } } if ((this._parent.TypeMaterial == null)) { ITypeMaterial typeMaterialCasted = item.As <ITypeMaterial>(); if ((typeMaterialCasted != null)) { this._parent.TypeMaterial = typeMaterialCasted; return; } } IPropertyUnit propertyUnitsCasted = item.As <IPropertyUnit>(); if ((propertyUnitsCasted != null)) { this._parent.PropertyUnits.Add(propertyUnitsCasted); } }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { ILimit limitsCasted = item.As <ILimit>(); if ((limitsCasted != null)) { this._parent.Limits.Add(limitsCasted); } ICompatibleUnit compatibleUnitsCasted = item.As <ICompatibleUnit>(); if ((compatibleUnitsCasted != null)) { this._parent.CompatibleUnits.Add(compatibleUnitsCasted); } IProcedureDataSet procedureDataSetsCasted = item.As <IProcedureDataSet>(); if ((procedureDataSetsCasted != null)) { this._parent.ProcedureDataSets.Add(procedureDataSetsCasted); } IUserAttribute procedureValuesCasted = item.As <IUserAttribute>(); if ((procedureValuesCasted != null)) { this._parent.ProcedureValues.Add(procedureValuesCasted); } }
/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { ICompatibleUnit compatibleUnitItem = item.As <ICompatibleUnit>(); if (((compatibleUnitItem != null) && this._parent.CompatibleUnits.Remove(compatibleUnitItem))) { return(true); } if ((this._parent.Status == item)) { this._parent.Status = null; return(true); } if ((this._parent.TypeMaterial == item)) { this._parent.TypeMaterial = null; return(true); } IPropertyUnit propertyUnitItem = item.As <IPropertyUnit>(); if (((propertyUnitItem != null) && this._parent.PropertyUnits.Remove(propertyUnitItem))) { return(true); } return(false); }
/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { IWorkCostDetail workCostDetailItem = item.As <IWorkCostDetail>(); if (((workCostDetailItem != null) && this._parent.WorkCostDetails.Remove(workCostDetailItem))) { return(true); } if ((this._parent.Status == item)) { this._parent.Status = null; return(true); } ICompatibleUnit compatibleUnitItem = item.As <ICompatibleUnit>(); if (((compatibleUnitItem != null) && this._parent.CompatibleUnits.Remove(compatibleUnitItem))) { return(true); } ICUMaterialItem cUMaterialItemItem = item.As <ICUMaterialItem>(); if (((cUMaterialItemItem != null) && this._parent.CUMaterialItems.Remove(cUMaterialItemItem))) { return(true); } return(false); }
/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { ICUGroup cUGroupItem = item.As <ICUGroup>(); if (((cUGroupItem != null) && this._parent.ChildCUGroups.Remove(cUGroupItem))) { return(true); } if (((cUGroupItem != null) && this._parent.ParentCUGroups.Remove(cUGroupItem))) { return(true); } IDesignLocationCU designLocationCUItem = item.As <IDesignLocationCU>(); if (((designLocationCUItem != null) && this._parent.DesignLocationCUs.Remove(designLocationCUItem))) { return(true); } ICompatibleUnit compatibleUnitItem = item.As <ICompatibleUnit>(); if (((compatibleUnitItem != null) && this._parent.CompatibleUnits.Remove(compatibleUnitItem))) { return(true); } if ((this._parent.Status == item)) { this._parent.Status = null; return(true); } return(false); }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { IWorkCostDetail workCostDetailsCasted = item.As <IWorkCostDetail>(); if ((workCostDetailsCasted != null)) { this._parent.WorkCostDetails.Add(workCostDetailsCasted); } if ((this._parent.Status == null)) { IStatus statusCasted = item.As <IStatus>(); if ((statusCasted != null)) { this._parent.Status = statusCasted; return; } } ICompatibleUnit compatibleUnitsCasted = item.As <ICompatibleUnit>(); if ((compatibleUnitsCasted != null)) { this._parent.CompatibleUnits.Add(compatibleUnitsCasted); } ICUMaterialItem cUMaterialItemsCasted = item.As <ICUMaterialItem>(); if ((cUMaterialItemsCasted != null)) { this._parent.CUMaterialItems.Add(cUMaterialItemsCasted); } }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { if ((this._parent.Status == null)) { IStatus statusCasted = item.As <IStatus>(); if ((statusCasted != null)) { this._parent.Status = statusCasted; return; } } if ((this._parent.TypeAsset == null)) { ITypeAsset typeAssetCasted = item.As <ITypeAsset>(); if ((typeAssetCasted != null)) { this._parent.TypeAsset = typeAssetCasted; return; } } ICompatibleUnit compatibleUnitsCasted = item.As <ICompatibleUnit>(); if ((compatibleUnitsCasted != null)) { this._parent.CompatibleUnits.Add(compatibleUnitsCasted); } }
/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { IQualificationRequirement qualificationRequirementItem = item.As <IQualificationRequirement>(); if (((qualificationRequirementItem != null) && this._parent.QualificationRequirements.Remove(qualificationRequirementItem))) { return(true); } if ((this._parent.CULaborCode == item)) { this._parent.CULaborCode = null; return(true); } if ((this._parent.Status == item)) { this._parent.Status = null; return(true); } ICompatibleUnit compatibleUnitItem = item.As <ICompatibleUnit>(); if (((compatibleUnitItem != null) && this._parent.CompatibleUnits.Remove(compatibleUnitItem))) { return(true); } return(false); }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { IQualificationRequirement qualificationRequirementsCasted = item.As <IQualificationRequirement>(); if ((qualificationRequirementsCasted != null)) { this._parent.QualificationRequirements.Add(qualificationRequirementsCasted); } if ((this._parent.CULaborCode == null)) { ICULaborCode cULaborCodeCasted = item.As <ICULaborCode>(); if ((cULaborCodeCasted != null)) { this._parent.CULaborCode = cULaborCodeCasted; return; } } if ((this._parent.Status == null)) { IStatus statusCasted = item.As <IStatus>(); if ((statusCasted != null)) { this._parent.Status = statusCasted; return; } } ICompatibleUnit compatibleUnitsCasted = item.As <ICompatibleUnit>(); if ((compatibleUnitsCasted != null)) { this._parent.CompatibleUnits.Add(compatibleUnitsCasted); } }
/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { if ((this._parent.Status == item)) { this._parent.Status = null; return(true); } ICompatibleUnit compatibleUnitItem = item.As <ICompatibleUnit>(); if (((compatibleUnitItem != null) && this._parent.CompatibleUnits.Remove(compatibleUnitItem))) { return(true); } return(false); }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { ICUGroup childCUGroupsCasted = item.As <ICUGroup>(); if ((childCUGroupsCasted != null)) { this._parent.ChildCUGroups.Add(childCUGroupsCasted); } ICUGroup parentCUGroupsCasted = item.As <ICUGroup>(); if ((parentCUGroupsCasted != null)) { this._parent.ParentCUGroups.Add(parentCUGroupsCasted); } IDesignLocationCU designLocationCUsCasted = item.As <IDesignLocationCU>(); if ((designLocationCUsCasted != null)) { this._parent.DesignLocationCUs.Add(designLocationCUsCasted); } ICompatibleUnit compatibleUnitsCasted = item.As <ICompatibleUnit>(); if ((compatibleUnitsCasted != null)) { this._parent.CompatibleUnits.Add(compatibleUnitsCasted); } if ((this._parent.Status == null)) { IStatus statusCasted = item.As <IStatus>(); if ((statusCasted != null)) { this._parent.Status = statusCasted; return; } } }