/// <summary> /// Inserts this circle into the supplied index. /// </summary> /// <param name="index">The spatial index to add to (should be an instance of /// <see cref="EditingIndex"/>)</param> internal void AddToIndex(IEditSpatialIndex index) { EditingIndex cx = (index as EditingIndex); Debug.Assert(cx != null); cx.AddCircle(this); }
/// <summary> /// Records this circle as part of the spatial index in the current map model. /// </summary> internal void AddToIndex() { EditingIndex index = CadastralMapModel.Current.EditingIndex; if (index != null && !this.IsIndexed) { index.AddCircle(this); this.IsIndexed = true; } }