private void CreateToolBars(object sender, EventArgs e) { if (this.toolBars == null) { ToolBarService toolBarService = (ToolBarService)ServiceManager.Services.GetService(typeof(ToolBarService)); ToolBarEx[] toolBars = toolBarService.CreateToolbars(); this.toolBars = toolBars; this.Controls.AddRange(toolBars); } }