/// <summary> /// Disposes of the resources (other than memory) used by the <see cref="RibbonBarGroup" />. /// </summary> /// <param name="disposing">true when this method is called by the application rather than a finalizer.</param> protected override void Dispose(bool disposing) { if (disposing) { if (this._items != null) { this._items.Clear(true); this._items = null; } } base.Dispose(disposing); }
/// <summary> /// Disposes of the resources (other than memory) used by the <see cref="RibbonBarGroup" />. /// </summary> /// <param name="disposing">true when this method is called by the application rather than a finalizer.</param> protected override void Dispose(bool disposing) { if (disposing) { if (this._items != null) { this._items.Clear(true); this._items = null; } this.Parent?.Groups.Remove(this); } base.Dispose(disposing); }