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