/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { redUpDown = new System.Windows.Forms.NumericUpDown(); greenUpDown = new System.Windows.Forms.NumericUpDown(); blueUpDown = new System.Windows.Forms.NumericUpDown(); redLabel = new System.Windows.Forms.Label(); blueLabel = new System.Windows.Forms.Label(); greenLabel = new System.Windows.Forms.Label(); saturationLabel = new System.Windows.Forms.Label(); valueLabel = new System.Windows.Forms.Label(); hueLabel = new System.Windows.Forms.Label(); valueUpDown = new System.Windows.Forms.NumericUpDown(); saturationUpDown = new System.Windows.Forms.NumericUpDown(); hueUpDown = new System.Windows.Forms.NumericUpDown(); hexBox = new System.Windows.Forms.TextBox(); hexLabel = new System.Windows.Forms.Label(); okBtn = new System.Windows.Forms.Button(); cancelBtn = new System.Windows.Forms.Button(); blueGradientControl = new PaintDotNet.ColorGradientControl(); greenGradientControl = new PaintDotNet.ColorGradientControl(); redGradientControl = new PaintDotNet.ColorGradientControl(); saturationGradientControl = new PaintDotNet.ColorGradientControl(); hueGradientControl = new PaintDotNet.ColorGradientControl(); colorWheel = new PaintDotNet.ColorWheel(); hsvHeader = new PaintDotNet.HeaderLabel(); rgbHeader = new PaintDotNet.HeaderLabel(); valueGradientControl = new PaintDotNet.ColorGradientControl(); colorDisplayWidget = new PaintDotNet.ColorRectangleControl(); swatchHeader = new PaintDotNet.HeaderLabel(); swatchControl = new PaintDotNet.SwatchControl(); promptLbl = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(redUpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(greenUpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(blueUpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(valueUpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(saturationUpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(hueUpDown)).BeginInit(); SuspendLayout(); // // redUpDown // redUpDown.Location = new System.Drawing.Point(317, 34); redUpDown.Maximum = new decimal(new int[] { 255, 0, 0, 0 }); redUpDown.Name = "redUpDown"; redUpDown.Size = new System.Drawing.Size(56, 20); redUpDown.TabIndex = 2; redUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; redUpDown.ValueChanged += new System.EventHandler(UpDown_ValueChanged); redUpDown.Enter += new System.EventHandler(UpDown_Enter); redUpDown.KeyUp += new System.Windows.Forms.KeyEventHandler(UpDown_KeyUp); redUpDown.Leave += new System.EventHandler(UpDown_Leave); // // greenUpDown // greenUpDown.Location = new System.Drawing.Point(317, 58); greenUpDown.Maximum = new decimal(new int[] { 255, 0, 0, 0 }); greenUpDown.Name = "greenUpDown"; greenUpDown.Size = new System.Drawing.Size(56, 20); greenUpDown.TabIndex = 3; greenUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; greenUpDown.ValueChanged += new System.EventHandler(UpDown_ValueChanged); greenUpDown.Enter += new System.EventHandler(UpDown_Enter); greenUpDown.KeyUp += new System.Windows.Forms.KeyEventHandler(UpDown_KeyUp); greenUpDown.Leave += new System.EventHandler(UpDown_Leave); // // blueUpDown // blueUpDown.Location = new System.Drawing.Point(317, 82); blueUpDown.Maximum = new decimal(new int[] { 255, 0, 0, 0 }); blueUpDown.Name = "blueUpDown"; blueUpDown.Size = new System.Drawing.Size(56, 20); blueUpDown.TabIndex = 4; blueUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; blueUpDown.ValueChanged += new System.EventHandler(UpDown_ValueChanged); blueUpDown.Enter += new System.EventHandler(UpDown_Enter); blueUpDown.KeyUp += new System.Windows.Forms.KeyEventHandler(UpDown_KeyUp); blueUpDown.Leave += new System.EventHandler(UpDown_Leave); // // redLabel // redLabel.AutoSize = true; redLabel.Location = new System.Drawing.Point(219, 38); redLabel.Name = "redLabel"; redLabel.Size = new System.Drawing.Size(15, 13); redLabel.TabIndex = 7; redLabel.Text = "R"; redLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // blueLabel // blueLabel.AutoSize = true; blueLabel.Location = new System.Drawing.Point(219, 86); blueLabel.Name = "blueLabel"; blueLabel.Size = new System.Drawing.Size(14, 13); blueLabel.TabIndex = 8; blueLabel.Text = "B"; blueLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // greenLabel // greenLabel.AutoSize = true; greenLabel.Location = new System.Drawing.Point(219, 62); greenLabel.Name = "greenLabel"; greenLabel.Size = new System.Drawing.Size(15, 13); greenLabel.TabIndex = 9; greenLabel.Text = "G"; greenLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // saturationLabel // saturationLabel.AutoSize = true; saturationLabel.Location = new System.Drawing.Point(219, 174); saturationLabel.Name = "saturationLabel"; saturationLabel.Size = new System.Drawing.Size(17, 13); saturationLabel.TabIndex = 16; saturationLabel.Text = "S:"; saturationLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // valueLabel // valueLabel.AutoSize = true; valueLabel.Location = new System.Drawing.Point(219, 198); valueLabel.Name = "valueLabel"; valueLabel.Size = new System.Drawing.Size(17, 13); valueLabel.TabIndex = 15; valueLabel.Text = "V:"; valueLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // hueLabel // hueLabel.AutoSize = true; hueLabel.Location = new System.Drawing.Point(219, 150); hueLabel.Name = "hueLabel"; hueLabel.Size = new System.Drawing.Size(18, 13); hueLabel.TabIndex = 14; hueLabel.Text = "H:"; hueLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // valueUpDown // valueUpDown.Location = new System.Drawing.Point(317, 194); valueUpDown.Name = "valueUpDown"; valueUpDown.Size = new System.Drawing.Size(56, 20); valueUpDown.TabIndex = 8; valueUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; valueUpDown.ValueChanged += new System.EventHandler(UpDown_ValueChanged); valueUpDown.Enter += new System.EventHandler(UpDown_Enter); valueUpDown.KeyUp += new System.Windows.Forms.KeyEventHandler(UpDown_KeyUp); valueUpDown.Leave += new System.EventHandler(UpDown_Leave); // // saturationUpDown // saturationUpDown.Location = new System.Drawing.Point(317, 170); saturationUpDown.Name = "saturationUpDown"; saturationUpDown.Size = new System.Drawing.Size(56, 20); saturationUpDown.TabIndex = 7; saturationUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; saturationUpDown.ValueChanged += new System.EventHandler(UpDown_ValueChanged); saturationUpDown.Enter += new System.EventHandler(UpDown_Enter); saturationUpDown.KeyUp += new System.Windows.Forms.KeyEventHandler(UpDown_KeyUp); saturationUpDown.Leave += new System.EventHandler(UpDown_Leave); // // hueUpDown // hueUpDown.Location = new System.Drawing.Point(317, 146); hueUpDown.Maximum = new decimal(new int[] { 360, 0, 0, 0 }); hueUpDown.Name = "hueUpDown"; hueUpDown.Size = new System.Drawing.Size(56, 20); hueUpDown.TabIndex = 6; hueUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; hueUpDown.ValueChanged += new System.EventHandler(UpDown_ValueChanged); hueUpDown.Enter += new System.EventHandler(UpDown_Enter); hueUpDown.KeyUp += new System.Windows.Forms.KeyEventHandler(UpDown_KeyUp); hueUpDown.Leave += new System.EventHandler(UpDown_Leave); // // hexBox // hexBox.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; hexBox.Location = new System.Drawing.Point(317, 106); hexBox.Name = "hexBox"; hexBox.Size = new System.Drawing.Size(56, 20); hexBox.TabIndex = 5; hexBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; hexBox.TextChanged += new System.EventHandler(UpDown_ValueChanged); hexBox.Enter += new System.EventHandler(HexUpDown_Enter); hexBox.KeyDown += new System.Windows.Forms.KeyEventHandler(hexBox_KeyDown); hexBox.Leave += new System.EventHandler(HexUpDown_Leave); // // hexLabel // hexLabel.AutoSize = true; hexLabel.Location = new System.Drawing.Point(219, 109); hexLabel.Name = "hexLabel"; hexLabel.Size = new System.Drawing.Size(26, 13); hexLabel.TabIndex = 13; hexLabel.Text = "Hex"; hexLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // okBtn // okBtn.Location = new System.Drawing.Point(217, 252); okBtn.Name = "okBtn"; okBtn.Size = new System.Drawing.Size(75, 23); okBtn.TabIndex = 40; okBtn.Text = "Ok"; okBtn.UseVisualStyleBackColor = true; okBtn.Click += new System.EventHandler(okBtn_Click); // // cancelBtn // cancelBtn.Location = new System.Drawing.Point(298, 252); cancelBtn.Name = "cancelBtn"; cancelBtn.Size = new System.Drawing.Size(75, 23); cancelBtn.TabIndex = 41; cancelBtn.Text = "Cancel"; cancelBtn.UseVisualStyleBackColor = true; cancelBtn.Click += new System.EventHandler(cancelBtn_Click); // // blueGradientControl // blueGradientControl.Count = 1; blueGradientControl.CustomGradient = null; blueGradientControl.DrawFarNub = true; blueGradientControl.DrawNearNub = false; blueGradientControl.Location = new System.Drawing.Point(240, 83); blueGradientControl.MaxColor = System.Drawing.Color.White; blueGradientControl.MinColor = System.Drawing.Color.Black; blueGradientControl.Name = "blueGradientControl"; blueGradientControl.Orientation = System.Windows.Forms.Orientation.Horizontal; blueGradientControl.Size = new System.Drawing.Size(73, 19); blueGradientControl.TabIndex = 39; blueGradientControl.TabStop = false; blueGradientControl.Value = 0; blueGradientControl.ValueChanged += new System.EventHandler <PaintDotNet.IndexEventArgs>(RgbGradientControl_ValueChanged); // // greenGradientControl // greenGradientControl.Count = 1; greenGradientControl.CustomGradient = null; greenGradientControl.DrawFarNub = true; greenGradientControl.DrawNearNub = false; greenGradientControl.Location = new System.Drawing.Point(240, 59); greenGradientControl.MaxColor = System.Drawing.Color.White; greenGradientControl.MinColor = System.Drawing.Color.Black; greenGradientControl.Name = "greenGradientControl"; greenGradientControl.Orientation = System.Windows.Forms.Orientation.Horizontal; greenGradientControl.Size = new System.Drawing.Size(73, 19); greenGradientControl.TabIndex = 38; greenGradientControl.TabStop = false; greenGradientControl.Value = 0; greenGradientControl.ValueChanged += new System.EventHandler <PaintDotNet.IndexEventArgs>(RgbGradientControl_ValueChanged); // // redGradientControl // redGradientControl.Count = 1; redGradientControl.CustomGradient = null; redGradientControl.DrawFarNub = true; redGradientControl.DrawNearNub = false; redGradientControl.Location = new System.Drawing.Point(240, 35); redGradientControl.MaxColor = System.Drawing.Color.White; redGradientControl.MinColor = System.Drawing.Color.Black; redGradientControl.Name = "redGradientControl"; redGradientControl.Orientation = System.Windows.Forms.Orientation.Horizontal; redGradientControl.Size = new System.Drawing.Size(73, 19); redGradientControl.TabIndex = 37; redGradientControl.TabStop = false; redGradientControl.Value = 0; redGradientControl.ValueChanged += new System.EventHandler <PaintDotNet.IndexEventArgs>(RgbGradientControl_ValueChanged); // // saturationGradientControl // saturationGradientControl.Count = 1; saturationGradientControl.CustomGradient = null; saturationGradientControl.DrawFarNub = true; saturationGradientControl.DrawNearNub = false; saturationGradientControl.Location = new System.Drawing.Point(240, 171); saturationGradientControl.MaxColor = System.Drawing.Color.White; saturationGradientControl.MinColor = System.Drawing.Color.Black; saturationGradientControl.Name = "saturationGradientControl"; saturationGradientControl.Orientation = System.Windows.Forms.Orientation.Horizontal; saturationGradientControl.Size = new System.Drawing.Size(73, 19); saturationGradientControl.TabIndex = 35; saturationGradientControl.TabStop = false; saturationGradientControl.Value = 0; saturationGradientControl.ValueChanged += new System.EventHandler <PaintDotNet.IndexEventArgs>(HsvGradientControl_ValueChanged); // // hueGradientControl // hueGradientControl.Count = 1; hueGradientControl.CustomGradient = null; hueGradientControl.DrawFarNub = true; hueGradientControl.DrawNearNub = false; hueGradientControl.Location = new System.Drawing.Point(240, 147); hueGradientControl.MaxColor = System.Drawing.Color.White; hueGradientControl.MinColor = System.Drawing.Color.Black; hueGradientControl.Name = "hueGradientControl"; hueGradientControl.Orientation = System.Windows.Forms.Orientation.Horizontal; hueGradientControl.Size = new System.Drawing.Size(73, 19); hueGradientControl.TabIndex = 34; hueGradientControl.TabStop = false; hueGradientControl.Value = 0; hueGradientControl.ValueChanged += new System.EventHandler <PaintDotNet.IndexEventArgs>(HsvGradientControl_ValueChanged); // // colorWheel // colorWheel.Location = new System.Drawing.Point(53, 41); colorWheel.Name = "colorWheel"; colorWheel.Size = new System.Drawing.Size(146, 147); colorWheel.TabIndex = 3; colorWheel.TabStop = false; colorWheel.ColorChanged += new System.EventHandler(ColorWheel_ColorChanged); // // hsvHeader // hsvHeader.ForeColor = System.Drawing.SystemColors.Highlight; hsvHeader.Location = new System.Drawing.Point(219, 130); hsvHeader.Name = "hsvHeader"; hsvHeader.RightMargin = 0; hsvHeader.Size = new System.Drawing.Size(154, 14); hsvHeader.TabIndex = 28; hsvHeader.TabStop = false; // // rgbHeader // rgbHeader.ForeColor = System.Drawing.SystemColors.Highlight; rgbHeader.Location = new System.Drawing.Point(219, 18); rgbHeader.Name = "rgbHeader"; rgbHeader.RightMargin = 0; rgbHeader.Size = new System.Drawing.Size(154, 14); rgbHeader.TabIndex = 27; rgbHeader.TabStop = false; // // valueGradientControl // valueGradientControl.Count = 1; valueGradientControl.CustomGradient = null; valueGradientControl.DrawFarNub = true; valueGradientControl.DrawNearNub = false; valueGradientControl.Location = new System.Drawing.Point(240, 195); valueGradientControl.MaxColor = System.Drawing.Color.White; valueGradientControl.MinColor = System.Drawing.Color.Black; valueGradientControl.Name = "valueGradientControl"; valueGradientControl.Orientation = System.Windows.Forms.Orientation.Horizontal; valueGradientControl.Size = new System.Drawing.Size(73, 19); valueGradientControl.TabIndex = 2; valueGradientControl.TabStop = false; valueGradientControl.Value = 0; valueGradientControl.ValueChanged += new System.EventHandler <PaintDotNet.IndexEventArgs>(HsvGradientControl_ValueChanged); // // colorDisplayWidget // colorDisplayWidget.Location = new System.Drawing.Point(6, 33); colorDisplayWidget.Name = "colorDisplayWidget"; colorDisplayWidget.RectangleColor = System.Drawing.Color.Empty; colorDisplayWidget.Size = new System.Drawing.Size(42, 42); colorDisplayWidget.TabIndex = 32; // // swatchHeader // swatchHeader.ForeColor = System.Drawing.SystemColors.Highlight; swatchHeader.Location = new System.Drawing.Point(7, 194); swatchHeader.Name = "swatchHeader"; swatchHeader.RightMargin = 0; swatchHeader.Size = new System.Drawing.Size(193, 14); swatchHeader.TabIndex = 30; swatchHeader.TabStop = false; // // swatchControl // swatchControl.BlinkHighlight = false; swatchControl.Colors = new System.Drawing.Color[0]; swatchControl.Location = new System.Drawing.Point(7, 206); swatchControl.Name = "swatchControl"; swatchControl.Size = new System.Drawing.Size(192, 74); swatchControl.TabIndex = 31; swatchControl.Text = "swatchControl1"; swatchControl.ColorClicked += new System.EventHandler <PaintDotNet.IndexEventArgs>(swatchControl_ColorClicked); // // promptLbl // promptLbl.AutoSize = true; promptLbl.Location = new System.Drawing.Point(4, 9); promptLbl.Name = "promptLbl"; promptLbl.Size = new System.Drawing.Size(81, 13); promptLbl.TabIndex = 42; promptLbl.Text = "Choose a color:"; // // ColorPickerForm // AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; ClientSize = new System.Drawing.Size(386, 284); Controls.Add(promptLbl); Controls.Add(cancelBtn); Controls.Add(okBtn); Controls.Add(valueLabel); Controls.Add(saturationLabel); Controls.Add(hueLabel); Controls.Add(greenLabel); Controls.Add(blueLabel); Controls.Add(redLabel); Controls.Add(hexLabel); Controls.Add(blueGradientControl); Controls.Add(greenGradientControl); Controls.Add(redGradientControl); Controls.Add(saturationGradientControl); Controls.Add(hueGradientControl); Controls.Add(colorWheel); Controls.Add(hsvHeader); Controls.Add(rgbHeader); Controls.Add(valueGradientControl); Controls.Add(blueUpDown); Controls.Add(greenUpDown); Controls.Add(redUpDown); Controls.Add(hexBox); Controls.Add(hueUpDown); Controls.Add(saturationUpDown); Controls.Add(valueUpDown); Controls.Add(colorDisplayWidget); Controls.Add(swatchHeader); Controls.Add(swatchControl); FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; MaximizeBox = false; MinimizeBox = false; Name = "ColorPickerForm"; ShowInTaskbar = false; StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Text = "Color Picker"; ((System.ComponentModel.ISupportInitialize)(redUpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(greenUpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(blueUpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(valueUpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(saturationUpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(hueUpDown)).EndInit(); ResumeLayout(false); PerformLayout(); }
public Int32ColorWheelPropertyControl(PropertyControlInfo propInfo) : base(propInfo) { if (Property.MinValue != requiredMin || Property.MaxValue != requiredMax) { throw new ArgumentException("The only range allowed for this control is [" + requiredMin + ", " + requiredMax + "]"); } SuspendLayout(); this.header = new HeaderLabel(); this.header.Name = "header"; this.header.RightMargin = 0; this.header.Text = this.DisplayName; this.colorRectangle = new ColorRectangleControl(); this.colorRectangle.Name = "colorRectangle"; this.colorRectangle.TabStop = false; this.colorRectangle.TabIndex = 0; this.hsvColorWheel = new ColorWheel(); this.hsvColorWheel.Name = "hsvColorWheel"; this.hsvColorWheel.ColorChanged += new EventHandler(HsvColorWheel_ColorChanged); this.hsvColorWheel.TabStop = false; this.hsvColorWheel.TabIndex = 1; this.saturationSlider = new ColorGradientControl(); this.saturationSlider.Name = "saturationSlider"; this.saturationSlider.Orientation = Orientation.Vertical; this.saturationSlider.ValueChanged += new IndexEventHandler(SaturationSlider_ValueChanged); this.saturationSlider.TabStop = false; this.saturationSlider.TabIndex = 2; this.valueSlider = new ColorGradientControl(); this.valueSlider.Name = "valueSlider"; this.valueSlider.Orientation = Orientation.Vertical; this.valueSlider.ValueChanged += new IndexEventHandler(ValueSlider_ValueChanged); this.valueSlider.TabStop = false; this.valueSlider.TabIndex = 3; this.redLabel = new Label(); this.redLabel.Name = "redLabel"; this.redLabel.AutoSize = true; this.redLabel.Text = PdnResources.GetString("ColorsForm.RedLabel.Text"); this.redNud = new PdnNumericUpDown(); this.redNud.Name = "redNud"; this.redNud.Minimum = 0; this.redNud.Maximum = 255; this.redNud.TextAlign = HorizontalAlignment.Right; this.redNud.ValueChanged += new EventHandler(RedNud_ValueChanged); this.redNud.TabIndex = 4; this.greenLabel = new Label(); this.greenLabel.Name = "greenLabel"; this.greenLabel.AutoSize = true; this.greenLabel.Text = PdnResources.GetString("ColorsForm.GreenLabel.Text"); this.greenNud = new PdnNumericUpDown(); this.greenNud.Name = "greenNud"; this.greenNud.Minimum = 0; this.greenNud.Maximum = 255; this.greenNud.TextAlign = HorizontalAlignment.Right; this.greenNud.ValueChanged += new EventHandler(GreenNud_ValueChanged); this.greenNud.TabIndex = 5; this.blueLabel = new Label(); this.blueLabel.Name = "blueLabel"; this.blueLabel.AutoSize = true; this.blueLabel.Text = PdnResources.GetString("ColorsForm.BlueLabel.Text"); this.blueNud = new PdnNumericUpDown(); this.blueNud.Name = "blueNud"; this.blueNud.Minimum = 0; this.blueNud.Maximum = 255; this.blueNud.TextAlign = HorizontalAlignment.Right; this.blueNud.ValueChanged += new EventHandler(BlueNud_ValueChanged); this.blueNud.TabIndex = 6; this.resetButton = new Button(); this.resetButton.AutoSize = true; this.resetButton.Name = "resetButton"; this.resetButton.FlatStyle = FlatStyle.Standard; this.resetButton.Click += new EventHandler(ResetButton_Click); this.resetButton.Image = PdnResources.GetImage("Icons.ResetIcon.png"); this.resetButton.Width = 1; this.resetButton.Visible = (bool)propInfo.ControlProperties[ControlInfoPropertyNames.ShowResetButton].Value; this.ToolTip.SetToolTip(this.resetButton, PdnResources.GetString("Form.ResetButton.Text").Replace("&", "")); this.resetButton.TabIndex = 7; this.description = new Label(); this.description.Name = "description"; this.description.Text = this.Description; this.Controls.AddRange( new Control[] { this.header, this.hsvColorWheel, this.saturationSlider, this.valueSlider, this.colorRectangle, this.redLabel, this.redNud, this.greenLabel, this.greenNud, this.blueLabel, this.blueNud, this.resetButton, this.description }); ResumeLayout(false); }
public Int32ColorWheelPropertyControl(PropertyControlInfo propInfo) : base(propInfo) { if ((base.Property.MinValue != 0) || (base.Property.MaxValue != 0xffffff)) { object[] objArray1 = new object[] { "The only range allowed for this control is [", 0, ", ", 0xffffff, "]" }; throw new ArgumentException(string.Concat(objArray1)); } base.SuspendLayout(); this.header = new HeadingLabel(); this.header.Name = "header"; this.header.RightMargin = 0; this.header.Text = base.DisplayName; this.colorRectangle = new ColorRectangleControl(); this.colorRectangle.Name = "colorRectangle"; this.colorRectangle.TabStop = false; this.colorRectangle.TabIndex = 0; this.hsvColorWheel = new ColorWheel(); this.hsvColorWheel.Name = "hsvColorWheel"; this.hsvColorWheel.ColorChanged += new EventHandler(this.OnHsvColorWheelColorChanged); this.hsvColorWheel.TabStop = false; this.hsvColorWheel.TabIndex = 1; this.saturationSlider = new ColorGradientControl(); this.saturationSlider.Name = "saturationSlider"; this.saturationSlider.Orientation = Orientation.Vertical; this.saturationSlider.ValueChanged += new IndexEventHandler(this.OnSaturationSliderValueChanged); this.saturationSlider.TabStop = false; this.saturationSlider.TabIndex = 2; this.valueSlider = new ColorGradientControl(); this.valueSlider.Name = "valueSlider"; this.valueSlider.Orientation = Orientation.Vertical; this.valueSlider.ValueChanged += new IndexEventHandler(this.OnValueSliderValueChanged); this.valueSlider.TabStop = false; this.valueSlider.TabIndex = 3; this.redLabel = new PdnLabel(); this.redLabel.Name = "redLabel"; this.redLabel.AutoSize = true; this.redLabel.Text = PdnResources.GetString("ColorsForm.RedLabel.Text"); this.redNud = new PdnNumericUpDown(); this.redNud.Name = "redNud"; this.redNud.Minimum = decimal.Zero; this.redNud.Maximum = 255M; this.redNud.TextAlign = HorizontalAlignment.Right; this.redNud.ValueChanged += new EventHandler(this.OnRedNudValueChanged); this.redNud.TabIndex = 4; this.greenLabel = new PdnLabel(); this.greenLabel.Name = "greenLabel"; this.greenLabel.AutoSize = true; this.greenLabel.Text = PdnResources.GetString("ColorsForm.GreenLabel.Text"); this.greenNud = new PdnNumericUpDown(); this.greenNud.Name = "greenNud"; this.greenNud.Minimum = decimal.Zero; this.greenNud.Maximum = 255M; this.greenNud.TextAlign = HorizontalAlignment.Right; this.greenNud.ValueChanged += new EventHandler(this.OnGreenNudValueChanged); this.greenNud.TabIndex = 5; this.blueLabel = new PdnLabel(); this.blueLabel.Name = "blueLabel"; this.blueLabel.AutoSize = true; this.blueLabel.Text = PdnResources.GetString("ColorsForm.BlueLabel.Text"); this.blueNud = new PdnNumericUpDown(); this.blueNud.Name = "blueNud"; this.blueNud.Minimum = decimal.Zero; this.blueNud.Maximum = 255M; this.blueNud.TextAlign = HorizontalAlignment.Right; this.blueNud.ValueChanged += new EventHandler(this.OnBlueNudValueChanged); this.blueNud.TabIndex = 6; this.resetButton = new PdnPushButton(); this.resetButton.AutoSize = true; this.resetButton.Name = "resetButton"; this.resetButton.Click += new EventHandler(this.OnResetButtonClick); this.resetButton.Image = PdnResources.GetImage("Icons.ResetIcon.png"); this.resetButton.Width = 1; this.resetButton.Visible = (bool)propInfo.ControlProperties[ControlInfoPropertyNames.ShowResetButton].Value; base.ToolTip.SetToolTip(this.resetButton, PdnResources.GetString("Form.ResetButton.Text").Replace("&", "")); this.resetButton.TabIndex = 7; this.description = new PdnLabel(); this.description.Name = "description"; this.description.Text = base.Description; Control[] controls = new Control[] { this.header, this.hsvColorWheel, this.saturationSlider, this.valueSlider, this.colorRectangle, this.redLabel, this.redNud, this.greenLabel, this.greenNud, this.blueLabel, this.blueNud, this.resetButton, this.description }; base.Controls.AddRange(controls); base.ResumeLayout(false); }