public CommandBarManager() { this.SetStyle(ControlStyles.UserPaint, false); this.TabStop = false; this.Dock = DockStyle.Top; this.commandBars = new CommandBarCollection(this); }
protected override void Dispose(bool disposing) { if (disposing) { this.commandBars = null; } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { System.Diagnostics.Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().ToString() + " *******"); if (disposing) { if (commandBars != null) { commandBars.Dispose(); } } commandBars = null; base.Dispose(disposing); }