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