/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { IAncillaryServiceClearing ancillaryServiceClearingCasted = item.As <IAncillaryServiceClearing>(); if ((ancillaryServiceClearingCasted != null)) { this._parent.AncillaryServiceClearing.Add(ancillaryServiceClearingCasted); } }
/// <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) { IAncillaryServiceClearing ancillaryServiceClearingItem = item.As <IAncillaryServiceClearing>(); if (((ancillaryServiceClearingItem != null) && this._parent.AncillaryServiceClearing.Remove(ancillaryServiceClearingItem))) { return(true); } return(false); }