public ToolConfigRow(ToolBarConfigItems toolBarConfigItems) { this.toolBarConfigItems = toolBarConfigItems; this.headerLabel = new HeaderLabel(); this.headerLabel.Name = "headerLabel:" + toolBarConfigItems.ToString(); this.headerLabel.Text = PdnResources.GetString(GetHeaderResourceName()); this.headerLabel.RightMargin = 0; this.toolConfigStrip = new ToolConfigStrip(); this.toolConfigStrip.Name = "toolConfigStrip:" + toolBarConfigItems.ToString(); this.toolConfigStrip.AutoSize = true; this.toolConfigStrip.Dock = DockStyle.None; this.toolConfigStrip.GripStyle = ToolStripGripStyle.Hidden; this.toolConfigStrip.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow; this.toolConfigStrip.ToolBarConfigItems = this.toolBarConfigItems; }
public ToolConfigRow(ToolBarConfigItems toolBarConfigItems) { this.ToolBarConfigItems = toolBarConfigItems; this.HeaderLabel = new HeaderLabel(); this.HeaderLabel.Name = "headerLabel:" + toolBarConfigItems.ToString(); this.HeaderLabel.Text = PdnResources.GetString(GetHeaderResourceName()); this.HeaderLabel.RightMargin = 0; this.ToolConfigStrip = new ToolConfigStrip(); this.ToolConfigStrip.Name = "toolConfigStrip:" + toolBarConfigItems.ToString(); this.ToolConfigStrip.AutoSize = false; this.ToolConfigStrip.Dock = DockStyle.None; this.ToolConfigStrip.GripStyle = ToolStripGripStyle.Hidden; this.ToolConfigStrip.LayoutStyle = ToolStripLayoutStyle.Flow; ((FlowLayoutSettings)this.ToolConfigStrip.LayoutSettings).WrapContents = true; this.ToolConfigStrip.ToolBarConfigItems = this.ToolBarConfigItems; }