public override void RemoveObject(object Parent) { if (Parent is VObjectCollection) { VObjectCollection Content = Parent as VObjectCollection; Content.Remove(FName[this.CurrParent][this.CurrChild], FMatch[this.CurrParent][this.CurrChild]); } }
private void VObjectChangedHandler(object sender, System.EventArgs e) { if (_updatingChildren) { return; } VObject vobj = sender as VObject; if (vobj != null && vobj.IsDisposed) { _children.Remove(vobj); } _matrix.Reset(); UpdateBaseRectangle(); UpdateChildMatrices(); UpdateControlPointsState(); base.OnChanged(System.EventArgs.Empty); }