public DrawConfigStrip() { this._sssh = new SurfaceStyleSettingHelper(); this.lineWidths = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 20, 25, 30, 35, 40, 50, 60, 70, 80, 90, 100 }; this.InitializeComponent(); AddColor(this.drawColorButton); AddColor(this.fillColorButton); this.fillStyleComboBox.Items.Add(noneBrushText); this.fillStyleComboBox.Items.Add(solidBrushText); this.fillStyleComboBox.SelectedIndex = 0; this.lineWidthComboBox.ComboBox.SuspendLayout(); foreach (int i in this.lineWidths) { this.lineWidthComboBox.Items.Add(i.ToString()); } this.lineWidthComboBox.ComboBox.ResumeLayout(false); this.lineWidthComboBox.SelectedIndex = 0; this.lineWidthComboBox.Size = new Size(50, 24); this.fillStyleComboBox.Size = new Size(150, 24); ResetUI(); }
public LineWidthStrip() : base() { this.SuspendLayout(); this.Dock = DockStyle.None; this.GripStyle = ToolStripGripStyle.Hidden; this.LayoutStyle = ToolStripLayoutStyle.VerticalStackWithOverflow; this.ImageScalingSize = new Size(ImageWidth, ImageHeight); _sssh = new SurfaceStyleSettingHelper(); InitButtons(); ResetUI(); this.ResumeLayout(false); }
public ColorStrip() { _sssh = new SurfaceStyleSettingHelper(); Init(); }
public BrushStrip() : base() { InitializeComponent(); _sssh = new SurfaceStyleSettingHelper(); }