private void InitToolBars() { toolBarMain.SuspendLayout(); toolBarMain.ImageList = _toolImages; CreateMainToolbar(toolBarMain); toolBarMain.ButtonClick += new TD.SandBar.ToolBar.ButtonClickEventHandler(OnAnyToolBarButtonClick); toolBarMain.DockLine = 1; toolBarMain.Visible = true; toolBarMain.Dock = DockStyle.Left; toolBarMain.ResumeLayout(false); }
private void Test(TD.SandBar.ToolBar toolClient) { // // toolBarMain // 位置要改变,待定 this.topSandBarDock.Controls.Add(toolClient); toolClient.DockLine = 1; toolClient.Guid = new System.Guid("46d02df3-0068-4bb3-a433-298ceabd4491"); toolClient.Location = new System.Drawing.Point(2, 23); toolClient.Name = "toolClient"; toolClient.Size = new System.Drawing.Size(2, 47); toolClient.TabIndex = 10; toolClient.Text = "toolBar2"; toolClient.SuspendLayout(); toolClient.ImageList = _toolImages; CreateMainToolbar(toolClient); toolClient.ButtonClick += new TD.SandBar.ToolBar.ButtonClickEventHandler(OnAnyToolClientButtonClick); toolClient.ResumeLayout(false); }