public void addFeature(Feature feature) { if (feature == null) return; feature.FeatureID = m_oFeatures.Count; feature.setParentContainer(this); m_oFeatures.Add(feature); boundsOK = false; }
internal void insertFeature(int idx, Feature feature) { Debug.Assert(feature != null); Debug.Assert(feature.ParentContainer == null); Debug.Assert(m_oFeatures[idx] == null); // make sure position is empty m_oFeatures[idx] = feature; feature.FeatureID = idx; feature.setParentContainer(this); boundsOK = false; }