示例#1
0
		} /*CtrlController*/
		#endregion Properties

		#region Constructor
		public FrmMain() {
			InitializeComponent();
			SgList = new SavedGamesList();
			SClass = new SerializeClass();
			ctrlController = new ControlsController(this);
			clrPicker = new ColorPicker();
			SavedGamesList sg = SClass.deserializeSavedGames(this);
			if (sg != null) SgList = sg;
			CtrlController.giveControlspProperties();
			showOptions();
		} /*FrmMain*/
		/// <summary>
		/// Initializes a new instance of the ColorCellEditor class with default settings
		/// </summary>
		public ColorCellEditor() : base()
		{
			this.colorpicker = new ColorPicker(this);
			this.colorpicker.Location = new Point(0, 0);
			this.colorpicker.Dock = DockStyle.Fill;
			this.colorpicker.KeyPress += new KeyPressEventHandler(base.OnKeyPress);

			this.DropDown.Width = this.colorpicker.Width + 2;
			this.DropDown.Height = this.colorpicker.Height + 2;
			this.DropDown.Control = this.colorpicker;
			base.DropDownStyle = DropDownStyle.DropDownList;

			this.colorDialog = null;
		}
示例#3
0
        private void InitializeComponent()
        {
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.numR = new System.Windows.Forms.NumericUpDown();
            this.numG = new System.Windows.Forms.NumericUpDown();
            this.numB = new System.Windows.Forms.NumericUpDown();
            this.panelColor1 = new System.Windows.Forms.Panel();
            this.panelColor2 = new System.Windows.Forms.Panel();
            this.panelColors = new System.Windows.Forms.Panel();
            this.panel1 = new System.Windows.Forms.Panel();
            this.panel2 = new System.Windows.Forms.Panel();
            this.panel3 = new System.Windows.Forms.Panel();
            this.panel4 = new System.Windows.Forms.Panel();
            this.label4 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label6 = new System.Windows.Forms.Label();
            this.numHue = new System.Windows.Forms.NumericUpDown();
            this.numSat = new System.Windows.Forms.NumericUpDown();
            this.numLum = new System.Windows.Forms.NumericUpDown();
            this.luminanceView = new Fireball.Windows.Forms.ColorChooseControl.ColorSlider();
            this.saturationView = new Fireball.Windows.Forms.ColorChooseControl.ColorSlider();
            this.lsView = new Fireball.Windows.Forms.ColorChooseControl.ColorPicker();
            this.hueView = new Fireball.Windows.Forms.ColorChooseControl.ColorSlider();
            ((System.ComponentModel.ISupportInitialize)(this.numR)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numG)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numB)).BeginInit();
            this.panelColors.SuspendLayout();
            this.panel1.SuspendLayout();
            this.panel2.SuspendLayout();
            this.panel3.SuspendLayout();
            this.panel4.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numHue)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numSat)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numLum)).BeginInit();
            this.SuspendLayout();
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(386, 100);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(18, 13);
            this.label1.TabIndex = 5;
            this.label1.Text = "R:";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(386, 126);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(18, 13);
            this.label2.TabIndex = 5;
            this.label2.Text = "G:";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(386, 152);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(17, 13);
            this.label3.TabIndex = 5;
            this.label3.Text = "B:";
            // 
            // numR
            // 
            this.numR.Location = new System.Drawing.Point(408, 98);
            this.numR.Maximum = new decimal(new int[] {
            255,
            0,
            0,
            0});
            this.numR.Name = "numR";
            this.numR.Size = new System.Drawing.Size(48, 20);
            this.numR.TabIndex = 6;
            this.numR.Value = new decimal(new int[] {
            255,
            0,
            0,
            0});
            this.numR.ValueChanged += new System.EventHandler(this.numR_ValueChanged);
            // 
            // numG
            // 
            this.numG.Location = new System.Drawing.Point(408, 124);
            this.numG.Maximum = new decimal(new int[] {
            255,
            0,
            0,
            0});
            this.numG.Name = "numG";
            this.numG.Size = new System.Drawing.Size(48, 20);
            this.numG.TabIndex = 6;
            this.numG.ValueChanged += new System.EventHandler(this.numG_ValueChanged);
            // 
            // numB
            // 
            this.numB.Location = new System.Drawing.Point(408, 150);
            this.numB.Maximum = new decimal(new int[] {
            255,
            0,
            0,
            0});
            this.numB.Name = "numB";
            this.numB.Size = new System.Drawing.Size(48, 20);
            this.numB.TabIndex = 6;
            this.numB.ValueChanged += new System.EventHandler(this.numB_ValueChanged);
            // 
            // panelColor1
            // 
            this.panelColor1.BackColor = System.Drawing.Color.Red;
            this.panelColor1.Location = new System.Drawing.Point(1, 1);
            this.panelColor1.Name = "panelColor1";
            this.panelColor1.Size = new System.Drawing.Size(68, 34);
            this.panelColor1.TabIndex = 7;
            // 
            // panelColor2
            // 
            this.panelColor2.BackColor = System.Drawing.Color.Red;
            this.panelColor2.Location = new System.Drawing.Point(1, 35);
            this.panelColor2.Name = "panelColor2";
            this.panelColor2.Size = new System.Drawing.Size(68, 34);
            this.panelColor2.TabIndex = 7;
            // 
            // panelColors
            // 
            this.panelColors.BackColor = System.Drawing.SystemColors.ControlDark;
            this.panelColors.Controls.Add(this.panelColor1);
            this.panelColors.Controls.Add(this.panelColor2);
            this.panelColors.Location = new System.Drawing.Point(387, 5);
            this.panelColors.Name = "panelColors";
            this.panelColors.Size = new System.Drawing.Size(70, 70);
            this.panelColors.TabIndex = 8;
            // 
            // panel1
            // 
            this.panel1.BackColor = System.Drawing.SystemColors.ControlDark;
            this.panel1.Controls.Add(this.hueView);
            this.panel1.Location = new System.Drawing.Point(347, 5);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(22, 258);
            this.panel1.TabIndex = 9;
            // 
            // panel2
            // 
            this.panel2.BackColor = System.Drawing.SystemColors.ControlDark;
            this.panel2.Controls.Add(this.lsView);
            this.panel2.Location = new System.Drawing.Point(3, 5);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(258, 258);
            this.panel2.TabIndex = 10;
            // 
            // panel3
            // 
            this.panel3.BackColor = System.Drawing.SystemColors.ControlDark;
            this.panel3.Controls.Add(this.saturationView);
            this.panel3.Location = new System.Drawing.Point(274, 5);
            this.panel3.Name = "panel3";
            this.panel3.Size = new System.Drawing.Size(22, 258);
            this.panel3.TabIndex = 11;
            // 
            // panel4
            // 
            this.panel4.BackColor = System.Drawing.SystemColors.ControlDark;
            this.panel4.Controls.Add(this.luminanceView);
            this.panel4.Location = new System.Drawing.Point(310, 5);
            this.panel4.Name = "panel4";
            this.panel4.Size = new System.Drawing.Size(22, 258);
            this.panel4.TabIndex = 12;
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(386, 192);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(18, 13);
            this.label4.TabIndex = 5;
            this.label4.Text = "H:";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(386, 218);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(17, 13);
            this.label5.TabIndex = 5;
            this.label5.Text = "S:";
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(386, 244);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(16, 13);
            this.label6.TabIndex = 5;
            this.label6.Text = "L:";
            // 
            // numHue
            // 
            this.numHue.Location = new System.Drawing.Point(408, 190);
            this.numHue.Maximum = new decimal(new int[] {
            359,
            0,
            0,
            0});
            this.numHue.Name = "numHue";
            this.numHue.Size = new System.Drawing.Size(48, 20);
            this.numHue.TabIndex = 6;
            this.numHue.Value = new decimal(new int[] {
            359,
            0,
            0,
            0});
            this.numHue.ValueChanged += new System.EventHandler(this.numHue_ValueChanged);
            // 
            // numSat
            // 
            this.numSat.DecimalPlaces = 1;
            this.numSat.Location = new System.Drawing.Point(408, 216);
            this.numSat.Name = "numSat";
            this.numSat.Size = new System.Drawing.Size(48, 20);
            this.numSat.TabIndex = 6;
            this.numSat.Value = new decimal(new int[] {
            100,
            0,
            0,
            0});
            this.numSat.ValueChanged += new System.EventHandler(this.numSat_ValueChanged);
            // 
            // numLum
            // 
            this.numLum.DecimalPlaces = 1;
            this.numLum.Location = new System.Drawing.Point(408, 242);
            this.numLum.Name = "numLum";
            this.numLum.Size = new System.Drawing.Size(48, 20);
            this.numLum.TabIndex = 6;
            this.numLum.Value = new decimal(new int[] {
            100,
            0,
            0,
            0});
            this.numLum.ValueChanged += new System.EventHandler(this.numLum_ValueChanged);
            // 
            // luminanceView
            // 
            this.luminanceView.ColorMode = Fireball.Windows.Forms.ColorChooseControl.ColorSliderMode.Hue;
            this.luminanceView.Location = new System.Drawing.Point(1, 1);
            this.luminanceView.Name = "luminanceView";
            this.luminanceView.Size = new System.Drawing.Size(20, 256);
            this.luminanceView.TabIndex = 1;
            this.luminanceView.Value = 0F;
            // 
            // saturationView
            // 
            this.saturationView.ColorMode = Fireball.Windows.Forms.ColorChooseControl.ColorSliderMode.Hue;
            this.saturationView.Location = new System.Drawing.Point(1, 1);
            this.saturationView.Name = "saturationView";
            this.saturationView.Size = new System.Drawing.Size(20, 256);
            this.saturationView.TabIndex = 1;
            this.saturationView.Value = 0F;
            // 
            // lsView
            // 
            this.lsView.Hue = 360F;
            this.lsView.Location = new System.Drawing.Point(1, 1);
            this.lsView.Luminance = 16.13725F;
            this.lsView.Name = "lsView";
            this.lsView.Saturation = 1.019608F;
            this.lsView.Size = new System.Drawing.Size(256, 256);
            this.lsView.TabIndex = 0;
            // 
            // hueView
            // 
            this.hueView.ColorMode = Fireball.Windows.Forms.ColorChooseControl.ColorSliderMode.Hue;
            this.hueView.Location = new System.Drawing.Point(1, 1);
            this.hueView.Name = "hueView";
            this.hueView.Size = new System.Drawing.Size(20, 256);
            this.hueView.TabIndex = 1;
            this.hueView.Value = 0F;
            // 
            // ColorChooseControl
            // 
            this.Controls.Add(this.panel4);
            this.Controls.Add(this.panel3);
            this.Controls.Add(this.panel2);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.panelColors);
            this.Controls.Add(this.numLum);
            this.Controls.Add(this.numSat);
            this.Controls.Add(this.numB);
            this.Controls.Add(this.numHue);
            this.Controls.Add(this.numG);
            this.Controls.Add(this.label6);
            this.Controls.Add(this.numR);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Name = "ColorChooseControl";
            this.Size = new System.Drawing.Size(491, 300);
            ((System.ComponentModel.ISupportInitialize)(this.numR)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numG)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numB)).EndInit();
            this.panelColors.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            this.panel3.ResumeLayout(false);
            this.panel4.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.numHue)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numSat)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numLum)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
示例#4
0
文件: frmMain.cs 项目: viticm/pap2
		private void LoadPopup(object sender, System.EventArgs e)
		{
			ButtonItem item=sender as ButtonItem;
			if(item == bTabColor)
			{
				DevComponents.DotNetBar.PopupContainerControl container=item.PopupContainerControl as PopupContainerControl;
				ColorPicker clr=new ColorPicker();
				container.Controls.Add(clr);
				if(cmdStyleOffice2003.Checked)
				{
					clr.BackColor=dotNetBarManager1.Bars[0].ColorScheme.BarBackground2;
					clr.tabStrip1.Style=eTabStripStyle.Office2003;
				}
				clr.Location=container.ClientRectangle.Location;
				container.ClientSize=clr.Size;
			}
		}
示例#5
0
        public ColorPickerForm(ColorPicker owner)
        {
            _owner = owner;

            Size = new Size(188, 264);
            Location = new Point(
                Screen.PrimaryScreen.WorkingArea.Width / 2 - Width / 2,
                Screen.PrimaryScreen.WorkingArea.Height / 2 - Height / 2);
            Resizable = false;
            Text = "Pick a color";
            TopMost = true;

            _bsPicker = new BrightnessSaturationPicker(128, 128);
            _bsPicker.Location = new Point(16, 24);
            _bsPicker.BrightnessChanged += _bsPicker_BrightnessChanged;
            _bsPicker.SaturationChanged += _bsPicker_SaturationChanged;

            Controls.Add(_bsPicker);

            _huePicker = new HuePicker(20, 128);
            _huePicker.Location = new Point(_bsPicker.Location.X + _bsPicker.Width + 8, _bsPicker.Location.Y);
            _huePicker.HueChanged += _huePicker_HueChanged;

            Controls.Add(_huePicker);

            _hLabel = new Label();
            _hLabel.Text = "H:";
            _hLabel.Location = new Point(_bsPicker.Location.X, _bsPicker.Location.Y + _bsPicker.Height + 8);
            _sLabel = new Label();
            _sLabel.Text = "S:";
            _sLabel.Location = new Point(_hLabel.Location.X, _hLabel.Location.Y + 22);
            _lLabel = new Label();
            _lLabel.Text = "L:";
            _lLabel.Location = new Point(_hLabel.Location.X, _sLabel.Location.Y + 22);

            Controls.Add(_hLabel);
            Controls.Add(_sLabel);
            Controls.Add(_lLabel);

            _hNumeric = new NumericUpDown();
            _hNumeric.Minimum = 0;
            _hNumeric.Maximum = 360;
            _hNumeric.Location = new Point(_hLabel.Location.X + 24, _hLabel.Location.Y);
            _hNumeric.Size = new Drawing.Size(50, 20);
            _hNumeric.ValueChanged += _hNumeric_ValueChanged;
            _hNumeric.TextAlign = HorizontalAlignment.Center;
            _sNumeric = new NumericUpDown();
            _sNumeric.Minimum = 0;
            _sNumeric.Maximum = 255;
            _sNumeric.Location = new Point(_sLabel.Location.X + 24, _sLabel.Location.Y);
            _sNumeric.Size = new Drawing.Size(50, 20);
            _sNumeric.ValueChanged += _sNumeric_ValueChanged;
            _sNumeric.TextAlign = HorizontalAlignment.Center;
            _lNumeric = new NumericUpDown();
            _lNumeric.Minimum = 0;
            _lNumeric.Maximum = 255;
            _lNumeric.Location = new Point(_lLabel.Location.X + 24, _lLabel.Location.Y);
            _lNumeric.Size = new Drawing.Size(50, 20);
            _lNumeric.ValueChanged += _lNumeric_ValueChanged;
            _lNumeric.TextAlign = HorizontalAlignment.Center;

            Controls.Add(_hNumeric);
            Controls.Add(_sNumeric);
            Controls.Add(_lNumeric);

            _rLabel = new Label();
            _rLabel.Text = "R:";
            _rLabel.Location = new Point(_hNumeric.Location.X + _hNumeric.Width + 8, _hLabel.Location.Y);
            _gLabel = new Label();
            _gLabel.Text = "G:";
            _gLabel.Location = new Point(_rLabel.Location.X, _sLabel.Location.Y);
            _bLabel = new Label();
            _bLabel.Text = "B:";
            _bLabel.Location = new Point(_rLabel.Location.X, _lLabel.Location.Y);

            Controls.Add(_rLabel);
            Controls.Add(_gLabel);
            Controls.Add(_bLabel);

            _rNumeric = new NumericUpDown();
            _rNumeric.Minimum = 0;
            _rNumeric.Maximum = 255;
            _rNumeric.Location = new Point(_rLabel.Location.X + 24, _rLabel.Location.Y);
            _rNumeric.Size = new Size(50, 20);
            _rNumeric.TextAlign = HorizontalAlignment.Center;
            _rNumeric.ValueChanged += _rNumeric_ValueChanged;
            _gNumeric = new NumericUpDown();
            _gNumeric.Minimum = 0;
            _gNumeric.Maximum = 255;
            _gNumeric.Location = new Point(_gLabel.Location.X + 24, _gLabel.Location.Y);
            _gNumeric.Size = new Drawing.Size(50, 20);
            _gNumeric.TextAlign = HorizontalAlignment.Center;
            _gNumeric.ValueChanged += _gNumeric_ValueChanged;
            _bNumeric = new NumericUpDown();
            _bNumeric.Minimum = 0;
            _bNumeric.Maximum = 255;
            _bNumeric.Location = new Point(_bLabel.Location.X + 24, _bLabel.Location.Y);
            _bNumeric.Size = new Drawing.Size(50, 20);
            _bNumeric.TextAlign = HorizontalAlignment.Center;
            _bNumeric.ValueChanged += _bNumeric_ValueChanged;

            Controls.Add(_rNumeric);
            Controls.Add(_gNumeric);
            Controls.Add(_bNumeric);

            _alphaPicker = new AlphaPicker(_lNumeric.Location.X + _lNumeric.Width - _lLabel.Location.X, 20);
            _alphaPicker.Location = new Point(_lLabel.Location.X, _lLabel.Location.Y + 26);
            _alphaPicker.AlphaChanged += _alphaPicker_AlphaChanged;
            _aLabel = new Label();
            _aLabel.Location = new Point(_bLabel.Location.X, _alphaPicker.Location.Y);
            _aLabel.Text = "A:";
            _aNumeric = new NumericUpDown();
            _aNumeric.Minimum = 0;
            _aNumeric.Maximum = 255;
            _aNumeric.Value = 255;
            _aNumeric.Location = new Point(_bNumeric.Location.X, _aLabel.Location.Y);
            _aNumeric.Size = new Drawing.Size(50, 20);
            _aNumeric.TextAlign = HorizontalAlignment.Center;
            _aNumeric.ValueChanged += _aNumeric_ValueChanged;

            Controls.Add(_alphaPicker);
            Controls.Add(_aLabel);
            Controls.Add(_aNumeric);
        }
示例#6
0
        public ColorPickerForm(ColorPicker owner)
        {
            _owner = owner;

            Size     = new Size(188, 264);
            Location = new Point(
                Screen.PrimaryScreen.WorkingArea.Width / 2 - Width / 2,
                Screen.PrimaryScreen.WorkingArea.Height / 2 - Height / 2);
            Resizable = false;
            Text      = "Pick a color";
            TopMost   = true;

            _bsPicker                    = new BrightnessSaturationPicker(128, 128);
            _bsPicker.Location           = new Point(16, 24);
            _bsPicker.BrightnessChanged += _bsPicker_BrightnessChanged;
            _bsPicker.SaturationChanged += _bsPicker_SaturationChanged;

            Controls.Add(_bsPicker);

            _huePicker             = new HuePicker(20, 128);
            _huePicker.Location    = new Point(_bsPicker.Location.X + _bsPicker.Width + 8, _bsPicker.Location.Y);
            _huePicker.HueChanged += _huePicker_HueChanged;

            Controls.Add(_huePicker);

            _hLabel          = new Label();
            _hLabel.Text     = "H:";
            _hLabel.Location = new Point(_bsPicker.Location.X, _bsPicker.Location.Y + _bsPicker.Height + 8);
            _sLabel          = new Label();
            _sLabel.Text     = "S:";
            _sLabel.Location = new Point(_hLabel.Location.X, _hLabel.Location.Y + 22);
            _lLabel          = new Label();
            _lLabel.Text     = "L:";
            _lLabel.Location = new Point(_hLabel.Location.X, _sLabel.Location.Y + 22);

            Controls.Add(_hLabel);
            Controls.Add(_sLabel);
            Controls.Add(_lLabel);

            _hNumeric               = new NumericUpDown();
            _hNumeric.Minimum       = 0;
            _hNumeric.Maximum       = 360;
            _hNumeric.Location      = new Point(_hLabel.Location.X + 24, _hLabel.Location.Y);
            _hNumeric.Size          = new Drawing.Size(50, 20);
            _hNumeric.ValueChanged += _hNumeric_ValueChanged;
            _hNumeric.TextAlign     = HorizontalAlignment.Center;
            _sNumeric               = new NumericUpDown();
            _sNumeric.Minimum       = 0;
            _sNumeric.Maximum       = 255;
            _sNumeric.Location      = new Point(_sLabel.Location.X + 24, _sLabel.Location.Y);
            _sNumeric.Size          = new Drawing.Size(50, 20);
            _sNumeric.ValueChanged += _sNumeric_ValueChanged;
            _sNumeric.TextAlign     = HorizontalAlignment.Center;
            _lNumeric               = new NumericUpDown();
            _lNumeric.Minimum       = 0;
            _lNumeric.Maximum       = 255;
            _lNumeric.Location      = new Point(_lLabel.Location.X + 24, _lLabel.Location.Y);
            _lNumeric.Size          = new Drawing.Size(50, 20);
            _lNumeric.ValueChanged += _lNumeric_ValueChanged;
            _lNumeric.TextAlign     = HorizontalAlignment.Center;

            Controls.Add(_hNumeric);
            Controls.Add(_sNumeric);
            Controls.Add(_lNumeric);

            _rLabel          = new Label();
            _rLabel.Text     = "R:";
            _rLabel.Location = new Point(_hNumeric.Location.X + _hNumeric.Width + 8, _hLabel.Location.Y);
            _gLabel          = new Label();
            _gLabel.Text     = "G:";
            _gLabel.Location = new Point(_rLabel.Location.X, _sLabel.Location.Y);
            _bLabel          = new Label();
            _bLabel.Text     = "B:";
            _bLabel.Location = new Point(_rLabel.Location.X, _lLabel.Location.Y);

            Controls.Add(_rLabel);
            Controls.Add(_gLabel);
            Controls.Add(_bLabel);

            _rNumeric               = new NumericUpDown();
            _rNumeric.Minimum       = 0;
            _rNumeric.Maximum       = 255;
            _rNumeric.Location      = new Point(_rLabel.Location.X + 24, _rLabel.Location.Y);
            _rNumeric.Size          = new Size(50, 20);
            _rNumeric.TextAlign     = HorizontalAlignment.Center;
            _rNumeric.ValueChanged += _rNumeric_ValueChanged;
            _gNumeric               = new NumericUpDown();
            _gNumeric.Minimum       = 0;
            _gNumeric.Maximum       = 255;
            _gNumeric.Location      = new Point(_gLabel.Location.X + 24, _gLabel.Location.Y);
            _gNumeric.Size          = new Drawing.Size(50, 20);
            _gNumeric.TextAlign     = HorizontalAlignment.Center;
            _gNumeric.ValueChanged += _gNumeric_ValueChanged;
            _bNumeric               = new NumericUpDown();
            _bNumeric.Minimum       = 0;
            _bNumeric.Maximum       = 255;
            _bNumeric.Location      = new Point(_bLabel.Location.X + 24, _bLabel.Location.Y);
            _bNumeric.Size          = new Drawing.Size(50, 20);
            _bNumeric.TextAlign     = HorizontalAlignment.Center;
            _bNumeric.ValueChanged += _bNumeric_ValueChanged;

            Controls.Add(_rNumeric);
            Controls.Add(_gNumeric);
            Controls.Add(_bNumeric);

            _alphaPicker               = new AlphaPicker(_lNumeric.Location.X + _lNumeric.Width - _lLabel.Location.X, 20);
            _alphaPicker.Location      = new Point(_lLabel.Location.X, _lLabel.Location.Y + 26);
            _alphaPicker.AlphaChanged += _alphaPicker_AlphaChanged;
            _aLabel                 = new Label();
            _aLabel.Location        = new Point(_bLabel.Location.X, _alphaPicker.Location.Y);
            _aLabel.Text            = "A:";
            _aNumeric               = new NumericUpDown();
            _aNumeric.Minimum       = 0;
            _aNumeric.Maximum       = 255;
            _aNumeric.Value         = 255;
            _aNumeric.Location      = new Point(_bNumeric.Location.X, _aLabel.Location.Y);
            _aNumeric.Size          = new Drawing.Size(50, 20);
            _aNumeric.TextAlign     = HorizontalAlignment.Center;
            _aNumeric.ValueChanged += _aNumeric_ValueChanged;

            Controls.Add(_alphaPicker);
            Controls.Add(_aLabel);
            Controls.Add(_aNumeric);
        }