/// <summary> /// Adds a feature at a specific index position to the list. /// <see>#add(Feature, boolean)</see> /// </summary> /// <param name="index"> Index position for insertion. </param> /// <param name="feature"> Reference to a feature to add. </param> /// <param name="setSequence">sets the sequence the feature is attached to /// to the sequence the feature list is attached to; false: the attachement /// of the feature will not be changed. /// </param> public void Add(int index, Feature feature, bool setSequence) { base.Insert(index, feature); if(setSequence) feature.SetSequence(sequence); }
/// <summary> /// Adds a feature to the list. /// </summary> /// <param name="feature"> Reference to a feature to add. </param> /// <param name="setSequence"> true: sets the sequence the feature is attached to /// to the sequence the feature list is attached to; false: the attachement /// of the feature will not be changed. </param> public void Add(Feature feature, bool setSequence) { base.Add(feature); if (setSequence) feature.SetSequence(sequence); }