/// <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.PassTroughBill == null)) { IPassThroughBill passTroughBillCasted = item.As <IPassThroughBill>(); if ((passTroughBillCasted != null)) { this._parent.PassTroughBill = passTroughBillCasted; return; } } IChargeProfileData chargeProfileDataCasted = item.As <IChargeProfileData>(); if ((chargeProfileDataCasted != null)) { this._parent.ChargeProfileData.Add(chargeProfileDataCasted); } if ((this._parent.BillDeterminant == null)) { IBillDeterminant billDeterminantCasted = item.As <IBillDeterminant>(); if ((billDeterminantCasted != null)) { this._parent.BillDeterminant = billDeterminantCasted; 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.ChargeProfile == null)) { IChargeProfile chargeProfileCasted = item.As <IChargeProfile>(); if ((chargeProfileCasted != null)) { this._parent.ChargeProfile = chargeProfileCasted; return; } } if ((this._parent.BillDeterminant == null)) { IBillDeterminant billDeterminantCasted = item.As <IBillDeterminant>(); if ((billDeterminantCasted != null)) { this._parent.BillDeterminant = billDeterminantCasted; return; } } }