/// <summary> /// Releases the unmanaged resources used by the <see cref="T:System.ComponentModel.Design.ComponentDesigner"></see> and optionally releases the managed resources. /// </summary> /// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param> protected override void Dispose(bool disposing) { if (disposing) { //controls feststellen _owner = _ctl.Owner; if (_owner != null) { _owner.Buttons.Remove(_ctl); } } base.Dispose(disposing); }
/// <summary> /// Releases the unmanaged resources used by the <see cref="T:System.ComponentModel.Design.ComponentDesigner"></see> and optionally releases the managed resources. /// </summary> /// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param> protected override void Dispose(bool disposing) { if (disposing) { //controls feststellen _owner = _ctl.Owner; if (_owner != null) { _owner.Buttons.Remove(_ctl); } } base.Dispose(disposing); }