/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { IServiceDeliveryPoint serviceDeliveryPointsCasted = item.As <IServiceDeliveryPoint>(); if ((serviceDeliveryPointsCasted != null)) { this._parent.ServiceDeliveryPoints.Add(serviceDeliveryPointsCasted); } IErpPerson erpPersonsCasted = item.As <IErpPerson>(); if ((erpPersonsCasted != null)) { this._parent.ErpPersons.Add(erpPersonsCasted); } ICustomerAgreement customerAgreementsCasted = item.As <ICustomerAgreement>(); if ((customerAgreementsCasted != null)) { this._parent.CustomerAgreements.Add(customerAgreementsCasted); } IEndDeviceAsset endDeviceAssetsCasted = item.As <IEndDeviceAsset>(); if ((endDeviceAssetsCasted != null)) { this._parent.EndDeviceAssets.Add(endDeviceAssetsCasted); } }
/// <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) { IServiceDeliveryPoint serviceDeliveryPointItem = item.As <IServiceDeliveryPoint>(); if (((serviceDeliveryPointItem != null) && this._parent.ServiceDeliveryPoints.Remove(serviceDeliveryPointItem))) { return(true); } IErpPerson erpPersonItem = item.As <IErpPerson>(); if (((erpPersonItem != null) && this._parent.ErpPersons.Remove(erpPersonItem))) { return(true); } ICustomerAgreement customerAgreementItem = item.As <ICustomerAgreement>(); if (((customerAgreementItem != null) && this._parent.CustomerAgreements.Remove(customerAgreementItem))) { return(true); } IEndDeviceAsset endDeviceAssetItem = item.As <IEndDeviceAsset>(); if (((endDeviceAssetItem != null) && this._parent.EndDeviceAssets.Remove(endDeviceAssetItem))) { 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) { if ((this._parent.Status == null)) { IStatus statusCasted = item.As <IStatus>(); if ((statusCasted != null)) { this._parent.Status = statusCasted; return; } } IErpPerson erpPersonsCasted = item.As <IErpPerson>(); if ((erpPersonsCasted != null)) { this._parent.ErpPersons.Add(erpPersonsCasted); } IAppointment appointmentsCasted = item.As <IAppointment>(); if ((appointmentsCasted != null)) { this._parent.Appointments.Add(appointmentsCasted); } ITroubleTicket troubleTicketsCasted = item.As <ITroubleTicket>(); if ((troubleTicketsCasted != null)) { this._parent.TroubleTickets.Add(troubleTicketsCasted); } }
/// <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.Address == item)) { this._parent.Address = null; return(true); } if ((this._parent.CallBack == item)) { this._parent.CallBack = null; return(true); } if ((this._parent.MeetingInterval == item)) { this._parent.MeetingInterval = null; return(true); } IErpPerson erpPersonItem = item.As <IErpPerson>(); if (((erpPersonItem != null) && this._parent.ErpPersons.Remove(erpPersonItem))) { 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) { if ((this._parent.CertificationPeriod == null)) { IDateTimeInterval certificationPeriodCasted = item.As <IDateTimeInterval>(); if ((certificationPeriodCasted != null)) { this._parent.CertificationPeriod = certificationPeriodCasted; return; } } if ((this._parent.ErpPerson == null)) { IErpPerson erpPersonCasted = item.As <IErpPerson>(); if ((erpPersonCasted != null)) { this._parent.ErpPerson = erpPersonCasted; return; } } ICraft craftsCasted = item.As <ICraft>(); if ((craftsCasted != null)) { this._parent.Crafts.Add(craftsCasted); } IQualificationRequirement qualificationRequirementsCasted = item.As <IQualificationRequirement>(); if ((qualificationRequirementsCasted != null)) { this._parent.QualificationRequirements.Add(qualificationRequirementsCasted); } }
/// <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.WorkTask == item)) { this._parent.WorkTask = null; return(true); } IErpPerson erpPersonItem = item.As <IErpPerson>(); if (((erpPersonItem != null) && this._parent.ErpPersons.Remove(erpPersonItem))) { return(true); } if ((this._parent.WorkCostDetail == item)) { this._parent.WorkCostDetail = null; return(true); } if ((this._parent.Status == item)) { this._parent.Status = null; 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) { if ((this._parent.Status == item)) { this._parent.Status = null; return(true); } IErpPerson erpPersonItem = item.As <IErpPerson>(); if (((erpPersonItem != null) && this._parent.ErpPersons.Remove(erpPersonItem))) { return(true); } ISkill skillItem = item.As <ISkill>(); if (((skillItem != null) && this._parent.Skills.Remove(skillItem))) { return(true); } ICapability capabilityItem = item.As <ICapability>(); if (((capabilityItem != null) && this._parent.Capabilities.Remove(capabilityItem))) { 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) { if ((this._parent.Status == null)) { IStatus statusCasted = item.As <IStatus>(); if ((statusCasted != null)) { this._parent.Status = statusCasted; return; } } IErpPerson erpPersonsCasted = item.As <IErpPerson>(); if ((erpPersonsCasted != null)) { this._parent.ErpPersons.Add(erpPersonsCasted); } ISkill skillsCasted = item.As <ISkill>(); if ((skillsCasted != null)) { this._parent.Skills.Add(skillsCasted); } ICapability capabilitiesCasted = item.As <ICapability>(); if ((capabilitiesCasted != null)) { this._parent.Capabilities.Add(capabilitiesCasted); } }
/// <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); } IErpPerson erpPersonItem = item.As <IErpPerson>(); if (((erpPersonItem != null) && this._parent.ErpPersons.Remove(erpPersonItem))) { return(true); } IAppointment appointmentItem = item.As <IAppointment>(); if (((appointmentItem != null) && this._parent.Appointments.Remove(appointmentItem))) { return(true); } ITroubleTicket troubleTicketItem = item.As <ITroubleTicket>(); if (((troubleTicketItem != null) && this._parent.TroubleTickets.Remove(troubleTicketItem))) { 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) { IErpPerson erpPersonsCasted = item.As <IErpPerson>(); if ((erpPersonsCasted != null)) { this._parent.ErpPersons.Add(erpPersonsCasted); } }
/// <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) { IErpPerson erpPersonItem = item.As <IErpPerson>(); if (((erpPersonItem != null) && this._parent.ErpPersons.Remove(erpPersonItem))) { 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) { if ((this._parent.Status == null)) { IStatus statusCasted = item.As <IStatus>(); if ((statusCasted != null)) { this._parent.Status = statusCasted; return; } } IErpPerson erpPersonsCasted = item.As <IErpPerson>(); if ((erpPersonsCasted != null)) { this._parent.ErpPersons.Add(erpPersonsCasted); } }
/// <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.SwitchingStep == null)) { ISwitchingStep switchingStepCasted = item.As <ISwitchingStep>(); if ((switchingStepCasted != null)) { this._parent.SwitchingStep = switchingStepCasted; return; } } if ((this._parent.ErpPerson == null)) { IErpPerson erpPersonCasted = item.As <IErpPerson>(); if ((erpPersonCasted != null)) { this._parent.ErpPerson = erpPersonCasted; return; } } }
/// <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.ErpOrganisation == null)) { IErpOrganisation erpOrganisationCasted = item.As <IErpOrganisation>(); if ((erpOrganisationCasted != null)) { this._parent.ErpOrganisation = erpOrganisationCasted; return; } } if ((this._parent.ErpPerson == null)) { IErpPerson erpPersonCasted = item.As <IErpPerson>(); if ((erpPersonCasted != null)) { this._parent.ErpPerson = erpPersonCasted; return; } } }
/// <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.ErpPerson == null)) { IErpPerson erpPersonCasted = item.As <IErpPerson>(); if ((erpPersonCasted != null)) { this._parent.ErpPerson = erpPersonCasted; return; } } if ((this._parent.Document == null)) { IDocument documentCasted = item.As <IDocument>(); if ((documentCasted != null)) { this._parent.Document = documentCasted; return; } } }
/// <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.LandProperty == null)) { ILandProperty landPropertyCasted = item.As <ILandProperty>(); if ((landPropertyCasted != null)) { this._parent.LandProperty = landPropertyCasted; return; } } if ((this._parent.ErpPerson == null)) { IErpPerson erpPersonCasted = item.As <IErpPerson>(); if ((erpPersonCasted != null)) { this._parent.ErpPerson = erpPersonCasted; return; } } }
/// <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.WorkTask == null)) { IWorkTask workTaskCasted = item.As <IWorkTask>(); if ((workTaskCasted != null)) { this._parent.WorkTask = workTaskCasted; return; } } IErpPerson erpPersonsCasted = item.As <IErpPerson>(); if ((erpPersonsCasted != null)) { this._parent.ErpPersons.Add(erpPersonsCasted); } if ((this._parent.WorkCostDetail == null)) { IWorkCostDetail workCostDetailCasted = item.As <IWorkCostDetail>(); if ((workCostDetailCasted != null)) { this._parent.WorkCostDetail = workCostDetailCasted; return; } } if ((this._parent.Status == null)) { IStatus statusCasted = item.As <IStatus>(); if ((statusCasted != null)) { this._parent.Status = statusCasted; return; } } }
/// <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.Address == null)) { IStreetAddress addressCasted = item.As <IStreetAddress>(); if ((addressCasted != null)) { this._parent.Address = addressCasted; return; } } if ((this._parent.CallBack == null)) { ICallBack callBackCasted = item.As <ICallBack>(); if ((callBackCasted != null)) { this._parent.CallBack = callBackCasted; return; } } if ((this._parent.MeetingInterval == null)) { IDateTimeInterval meetingIntervalCasted = item.As <IDateTimeInterval>(); if ((meetingIntervalCasted != null)) { this._parent.MeetingInterval = meetingIntervalCasted; return; } } IErpPerson erpPersonsCasted = item.As <IErpPerson>(); if ((erpPersonsCasted != null)) { this._parent.ErpPersons.Add(erpPersonsCasted); } }