private void InitializeComponent()
 {
     this.btnOkay = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.pnlColors = new System.Windows.Forms.Panel();
     this.pnlNew = new System.Windows.Forms.BufferedPanel();
     this.pnlOld = new System.Windows.Forms.BufferedPanel();
     this.lblOld = new System.Windows.Forms.Label();
     this.lblNew = new System.Windows.Forms.Label();
     this.chkAlpha = new System.Windows.Forms.CheckBox();
     this.goodColorControl1 = new System.Windows.Forms.GoodColorControl();
     this.pnlColors.SuspendLayout();
     this.SuspendLayout();
     //
     // btnOkay
     //
     this.btnOkay.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnOkay.Location = new System.Drawing.Point(200, 221);
     this.btnOkay.Name = "btnOkay";
     this.btnOkay.Size = new System.Drawing.Size(59, 24);
     this.btnOkay.TabIndex = 0;
     this.btnOkay.Text = "Okay";
     this.btnOkay.UseVisualStyleBackColor = true;
     this.btnOkay.Click += new System.EventHandler(this.btnOkay_Click);
     //
     // btnCancel
     //
     this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.Location = new System.Drawing.Point(265, 221);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(59, 24);
     this.btnCancel.TabIndex = 1;
     this.btnCancel.Text = "Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // pnlColors
     //
     this.pnlColors.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)));
     this.pnlColors.Controls.Add(this.pnlNew);
     this.pnlColors.Controls.Add(this.pnlOld);
     this.pnlColors.Location = new System.Drawing.Point(14, 207);
     this.pnlColors.Name = "pnlColors";
     this.pnlColors.Size = new System.Drawing.Size(180, 37);
     this.pnlColors.TabIndex = 3;
     //
     // pnlNew
     //
     this.pnlNew.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pnlNew.Location = new System.Drawing.Point(90, 0);
     this.pnlNew.Name = "pnlNew";
     this.pnlNew.Size = new System.Drawing.Size(90, 37);
     this.pnlNew.TabIndex = 6;
     this.pnlNew.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlNew_Paint);
     //
     // pnlOld
     //
     this.pnlOld.Dock = System.Windows.Forms.DockStyle.Left;
     this.pnlOld.Location = new System.Drawing.Point(0, 0);
     this.pnlOld.Name = "pnlOld";
     this.pnlOld.Size = new System.Drawing.Size(90, 37);
     this.pnlOld.TabIndex = 5;
     this.pnlOld.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlOld_Paint);
     //
     // lblOld
     //
     this.lblOld.BackColor = System.Drawing.Color.White;
     this.lblOld.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblOld.Location = new System.Drawing.Point(9, 198);
     this.lblOld.Name = "lblOld";
     this.lblOld.Size = new System.Drawing.Size(35, 15);
     this.lblOld.TabIndex = 4;
     this.lblOld.Text = "Old";
     this.lblOld.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblNew
     //
     this.lblNew.BackColor = System.Drawing.Color.White;
     this.lblNew.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblNew.Location = new System.Drawing.Point(99, 198);
     this.lblNew.Name = "lblNew";
     this.lblNew.Size = new System.Drawing.Size(35, 15);
     this.lblNew.TabIndex = 5;
     this.lblNew.Text = "New";
     this.lblNew.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // chkAlpha
     //
     this.chkAlpha.Checked = true;
     this.chkAlpha.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkAlpha.Location = new System.Drawing.Point(221, 200);
     this.chkAlpha.Name = "chkAlpha";
     this.chkAlpha.Size = new System.Drawing.Size(90, 18);
     this.chkAlpha.TabIndex = 6;
     this.chkAlpha.Text = "Show Alpha";
     this.chkAlpha.UseVisualStyleBackColor = true;
     this.chkAlpha.CheckedChanged += new System.EventHandler(this.chkAlpha_CheckedChanged);
     //
     // goodColorControl1
     //
     this.goodColorControl1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.goodColorControl1.Location = new System.Drawing.Point(12, 10);
     this.goodColorControl1.MinimumSize = new System.Drawing.Size(310, 186);
     this.goodColorControl1.Name = "goodColorControl1";
     this.goodColorControl1.ShowAlpha = true;
     this.goodColorControl1.Size = new System.Drawing.Size(310, 186);
     this.goodColorControl1.TabIndex = 2;
     this.goodColorControl1.ColorChanged += new System.EventHandler(this.goodColorControl1_ColorChanged);
     //
     // GoodColorDialog
     //
     this.ClientSize = new System.Drawing.Size(335, 253);
     this.Controls.Add(this.chkAlpha);
     this.Controls.Add(this.lblNew);
     this.Controls.Add(this.lblOld);
     this.Controls.Add(this.pnlColors);
     this.Controls.Add(this.goodColorControl1);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOkay);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "GoodColorDialog";
     this.ShowInTaskbar = false;
     this.Text = "Color Selector";
     this.pnlColors.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#2
0
 private void InitializeComponent()
 {
     btnOkay           = new Button();
     btnCancel         = new Button();
     pnlColors         = new Panel();
     lblOld            = new Label();
     lblNew            = new Label();
     chkAlpha          = new CheckBox();
     pnlNew            = new BufferedPanel();
     pnlOld            = new BufferedPanel();
     goodColorControl1 = new GoodColorControl();
     pnlColors.SuspendLayout();
     SuspendLayout();
     //
     // btnOkay
     //
     btnOkay.Anchor   = AnchorStyles.Bottom | AnchorStyles.Right;
     btnOkay.Location = new Drawing.Point(200, 221);
     btnOkay.Name     = "btnOkay";
     btnOkay.Size     = new Drawing.Size(59, 24);
     btnOkay.TabIndex = 0;
     btnOkay.Text     = "Okay";
     btnOkay.UseVisualStyleBackColor = true;
     btnOkay.Click += btnOkay_Click;
     //
     // btnCancel
     //
     btnCancel.Anchor   = AnchorStyles.Bottom | AnchorStyles.Right;
     btnCancel.Location = new Drawing.Point(267, 221);
     btnCancel.Name     = "btnCancel";
     btnCancel.Size     = new Drawing.Size(59, 24);
     btnCancel.TabIndex = 1;
     btnCancel.Text     = "Cancel";
     btnCancel.UseVisualStyleBackColor = true;
     btnCancel.Click += btnCancel_Click;
     //
     // pnlColors
     //
     pnlColors.Anchor = AnchorStyles.Top | AnchorStyles.Bottom
                        | AnchorStyles.Left;
     pnlColors.Controls.Add(pnlNew);
     pnlColors.Controls.Add(pnlOld);
     pnlColors.Location = new Drawing.Point(14, 207);
     pnlColors.Name     = "pnlColors";
     pnlColors.Size     = new Drawing.Size(180, 37);
     pnlColors.TabIndex = 3;
     //
     // lblOld
     //
     lblOld.BackColor   = Color.White;
     lblOld.BorderStyle = BorderStyle.FixedSingle;
     lblOld.Location    = new Drawing.Point(9, 198);
     lblOld.Name        = "lblOld";
     lblOld.Size        = new Drawing.Size(35, 15);
     lblOld.TabIndex    = 4;
     lblOld.Text        = "Old";
     lblOld.TextAlign   = ContentAlignment.MiddleCenter;
     //
     // lblNew
     //
     lblNew.BackColor   = Color.White;
     lblNew.BorderStyle = BorderStyle.FixedSingle;
     lblNew.Location    = new Drawing.Point(99, 198);
     lblNew.Name        = "lblNew";
     lblNew.Size        = new Drawing.Size(35, 15);
     lblNew.TabIndex    = 5;
     lblNew.Text        = "New";
     lblNew.TextAlign   = ContentAlignment.MiddleCenter;
     //
     // chkAlpha
     //
     chkAlpha.Checked    = true;
     chkAlpha.CheckState = CheckState.Checked;
     chkAlpha.Location   = new Drawing.Point(221, 200);
     chkAlpha.Name       = "chkAlpha";
     chkAlpha.Size       = new Drawing.Size(90, 18);
     chkAlpha.TabIndex   = 6;
     chkAlpha.Text       = "Show Alpha";
     chkAlpha.UseVisualStyleBackColor = true;
     chkAlpha.CheckedChanged         += chkAlpha_CheckedChanged;
     //
     // pnlNew
     //
     pnlNew.Dock     = DockStyle.Fill;
     pnlNew.Location = new Drawing.Point(90, 0);
     pnlNew.Name     = "pnlNew";
     pnlNew.Size     = new Drawing.Size(90, 37);
     pnlNew.TabIndex = 6;
     pnlNew.Paint   += new PaintEventHandler(pnlNew_Paint);
     //
     // pnlOld
     //
     pnlOld.Dock     = DockStyle.Left;
     pnlOld.Location = new Drawing.Point(0, 0);
     pnlOld.Name     = "pnlOld";
     pnlOld.Size     = new Drawing.Size(90, 37);
     pnlOld.TabIndex = 5;
     pnlOld.Paint   += new PaintEventHandler(pnlOld_Paint);
     //
     // goodColorControl1
     //
     goodColorControl1.Color         = Color.FromArgb(0, 0, 0, 0);
     goodColorControl1.Location      = new Drawing.Point(12, 10);
     goodColorControl1.MinimumSize   = new Drawing.Size(310, 186);
     goodColorControl1.Name          = "goodColorControl1";
     goodColorControl1.ShowAlpha     = true;
     goodColorControl1.Size          = new Drawing.Size(314, 186);
     goodColorControl1.TabIndex      = 2;
     goodColorControl1.ColorChanged += goodColorControl1_ColorChanged;
     //
     // GoodColorControl2
     //
     Controls.Add(chkAlpha);
     Controls.Add(lblNew);
     Controls.Add(lblOld);
     Controls.Add(pnlColors);
     Controls.Add(goodColorControl1);
     Controls.Add(btnCancel);
     Controls.Add(btnOkay);
     Name = "GoodColorControl2";
     Size = new Drawing.Size(335, 253);
     pnlColors.ResumeLayout(false);
     ResumeLayout(false);
 }
示例#3
0
        public void InitializeComponents(int columns, int rows)
        {
            Columns = columns;
            Rows = rows;

            StadiumPanel = new FieldPanel(false);
            StadiumPanel.Size = new Size(Width, Height);
            StadiumPanel.BackColor = Color.Transparent;
            StadiumPanel.BackgroundImage = Properties.Resources.FieldSettingsBackground;

            int cellWidth = (Width - 60) / columns;
            int cellHeight = (Height - 60)/ rows;

            columns += 2;
            rows += 2;

            FieldGrid = new BufferedPanel();
            FieldGrid.Size = new Size((columns) * cellWidth, (rows) * cellHeight);
            FieldGrid.BackColor = Color.Transparent;
            FieldGrid.Location = new Point(40, 30);
            FieldGrid.Paint += fieldGrid_Paint;
            FieldGrid.MouseMove += FieldGrid_MouseMove;
            FieldGrid.MouseUp += FieldGrid_MouseUp;

            fieldCell = new Rectangle[columns, rows];
            for (int r = 0; r < rows; r++)
            {
                for (int c = 0; c < columns; c++)
                {
                    Rectangle cell = new Rectangle();
                    cell.Size = new Size(cellWidth, cellHeight);
                    cell.Location = new Point(c * cellWidth, r * cellHeight);
                    fieldCell[c, r] = cell;
                }
            }

            StadiumPanel.Controls.Add(FieldGrid);
            StadiumPanel.UpdateSettings(fieldCell, CurrentSettings, FieldGrid.Location);
            Controls.Add(StadiumPanel);
        }
 private void InitializeComponent()
 {
     this.lblStartText = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.lblStartColor = new System.Windows.Forms.Label();
     this.lblEndText = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.lblEndColor = new System.Windows.Forms.Label();
     this.btnOkay = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.btnCopy = new System.Windows.Forms.Button();
     this.pnlPreview = new System.Windows.Forms.BufferedPanel();
     this.SuspendLayout();
     //
     // lblStartText
     //
     this.lblStartText.BackColor = System.Drawing.Color.White;
     this.lblStartText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblStartText.Font = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblStartText.Location = new System.Drawing.Point(69, 8);
     this.lblStartText.Name = "lblStartText";
     this.lblStartText.Size = new System.Drawing.Size(154, 20);
     this.lblStartText.TabIndex = 4;
     this.lblStartText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.lblStartText.Click += new System.EventHandler(this.lblStartText_Click);
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(-1, 8);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(71, 20);
     this.label2.TabIndex = 3;
     this.label2.Text = "Start Color:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lblStartColor
     //
     this.lblStartColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblStartColor.Location = new System.Drawing.Point(222, 8);
     this.lblStartColor.Name = "lblStartColor";
     this.lblStartColor.Size = new System.Drawing.Size(40, 20);
     this.lblStartColor.TabIndex = 2;
     this.lblStartColor.Click += new System.EventHandler(this.lblStartText_Click);
     //
     // lblEndText
     //
     this.lblEndText.BackColor = System.Drawing.Color.White;
     this.lblEndText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblEndText.Font = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblEndText.Location = new System.Drawing.Point(69, 52);
     this.lblEndText.Name = "lblEndText";
     this.lblEndText.Size = new System.Drawing.Size(154, 20);
     this.lblEndText.TabIndex = 4;
     this.lblEndText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.lblEndText.Click += new System.EventHandler(this.lblEndText_Click);
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(2, 52);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(68, 20);
     this.label4.TabIndex = 3;
     this.label4.Text = "End Color:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lblEndColor
     //
     this.lblEndColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblEndColor.Location = new System.Drawing.Point(222, 52);
     this.lblEndColor.Name = "lblEndColor";
     this.lblEndColor.Size = new System.Drawing.Size(40, 20);
     this.lblEndColor.TabIndex = 2;
     this.lblEndColor.Click += new System.EventHandler(this.lblEndText_Click);
     //
     // btnOkay
     //
     this.btnOkay.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
     this.btnOkay.Location = new System.Drawing.Point(70, 119);
     this.btnOkay.Name = "btnOkay";
     this.btnOkay.Size = new System.Drawing.Size(65, 23);
     this.btnOkay.TabIndex = 6;
     this.btnOkay.Text = "Okay";
     this.btnOkay.UseVisualStyleBackColor = true;
     this.btnOkay.Click += new System.EventHandler(this.btnOkay_Click);
     //
     // btnCancel
     //
     this.btnCancel.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
     this.btnCancel.Location = new System.Drawing.Point(141, 119);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(65, 23);
     this.btnCancel.TabIndex = 7;
     this.btnCancel.Text = "Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // btnCopy
     //
     this.btnCopy.Location = new System.Drawing.Point(113, 30);
     this.btnCopy.Name = "btnCopy";
     this.btnCopy.Size = new System.Drawing.Size(50, 20);
     this.btnCopy.TabIndex = 9;
     this.btnCopy.Text = "Copy";
     this.btnCopy.UseVisualStyleBackColor = true;
     this.btnCopy.Click += new System.EventHandler(this.btnCopy_Click);
     //
     // pnlPreview
     //
     this.pnlPreview.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.pnlPreview.Location = new System.Drawing.Point(12, 81);
     this.pnlPreview.Name = "pnlPreview";
     this.pnlPreview.Size = new System.Drawing.Size(250, 27);
     this.pnlPreview.TabIndex = 8;
     this.pnlPreview.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlPreview_Paint);
     //
     // GradientDialog
     //
     this.ClientSize = new System.Drawing.Size(276, 154);
     this.Controls.Add(this.lblStartColor);
     this.Controls.Add(this.lblStartText);
     this.Controls.Add(this.lblEndText);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.btnCopy);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.lblEndColor);
     this.Controls.Add(this.pnlPreview);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOkay);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "GradientDialog";
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.Text = "Gradient Fill";
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.btnOkay           = new System.Windows.Forms.Button();
     this.btnCancel         = new System.Windows.Forms.Button();
     this.pnlColors         = new System.Windows.Forms.Panel();
     this.lblOld            = new System.Windows.Forms.Label();
     this.lblNew            = new System.Windows.Forms.Label();
     this.chkAlpha          = new System.Windows.Forms.CheckBox();
     this.pnlNew            = new System.Windows.Forms.BufferedPanel();
     this.pnlOld            = new System.Windows.Forms.BufferedPanel();
     this.goodColorControl1 = new System.Windows.Forms.GoodColorControl();
     this.pnlColors.SuspendLayout();
     this.SuspendLayout();
     //
     // btnOkay
     //
     this.btnOkay.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnOkay.Location = new System.Drawing.Point(200, 221);
     this.btnOkay.Name     = "btnOkay";
     this.btnOkay.Size     = new System.Drawing.Size(59, 24);
     this.btnOkay.TabIndex = 0;
     this.btnOkay.Text     = "Okay";
     this.btnOkay.UseVisualStyleBackColor = true;
     this.btnOkay.Click += new System.EventHandler(this.btnOkay_Click);
     //
     // btnCancel
     //
     this.btnCancel.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.Location = new System.Drawing.Point(267, 221);
     this.btnCancel.Name     = "btnCancel";
     this.btnCancel.Size     = new System.Drawing.Size(59, 24);
     this.btnCancel.TabIndex = 1;
     this.btnCancel.Text     = "Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // pnlColors
     //
     this.pnlColors.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)));
     this.pnlColors.Controls.Add(this.pnlNew);
     this.pnlColors.Controls.Add(this.pnlOld);
     this.pnlColors.Location = new System.Drawing.Point(14, 207);
     this.pnlColors.Name     = "pnlColors";
     this.pnlColors.Size     = new System.Drawing.Size(180, 37);
     this.pnlColors.TabIndex = 3;
     //
     // lblOld
     //
     this.lblOld.BackColor   = System.Drawing.Color.White;
     this.lblOld.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblOld.Location    = new System.Drawing.Point(9, 198);
     this.lblOld.Name        = "lblOld";
     this.lblOld.Size        = new System.Drawing.Size(35, 15);
     this.lblOld.TabIndex    = 4;
     this.lblOld.Text        = "Old";
     this.lblOld.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblNew
     //
     this.lblNew.BackColor   = System.Drawing.Color.White;
     this.lblNew.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblNew.Location    = new System.Drawing.Point(99, 198);
     this.lblNew.Name        = "lblNew";
     this.lblNew.Size        = new System.Drawing.Size(35, 15);
     this.lblNew.TabIndex    = 5;
     this.lblNew.Text        = "New";
     this.lblNew.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // chkAlpha
     //
     this.chkAlpha.Checked    = true;
     this.chkAlpha.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkAlpha.Location   = new System.Drawing.Point(221, 200);
     this.chkAlpha.Name       = "chkAlpha";
     this.chkAlpha.Size       = new System.Drawing.Size(90, 18);
     this.chkAlpha.TabIndex   = 6;
     this.chkAlpha.Text       = "Show Alpha";
     this.chkAlpha.UseVisualStyleBackColor = true;
     this.chkAlpha.CheckedChanged         += new System.EventHandler(this.chkAlpha_CheckedChanged);
     //
     // pnlNew
     //
     this.pnlNew.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnlNew.Location = new System.Drawing.Point(90, 0);
     this.pnlNew.Name     = "pnlNew";
     this.pnlNew.Size     = new System.Drawing.Size(90, 37);
     this.pnlNew.TabIndex = 6;
     this.pnlNew.Paint   += new System.Windows.Forms.PaintEventHandler(this.pnlNew_Paint);
     //
     // pnlOld
     //
     this.pnlOld.Dock     = System.Windows.Forms.DockStyle.Left;
     this.pnlOld.Location = new System.Drawing.Point(0, 0);
     this.pnlOld.Name     = "pnlOld";
     this.pnlOld.Size     = new System.Drawing.Size(90, 37);
     this.pnlOld.TabIndex = 5;
     this.pnlOld.Paint   += new System.Windows.Forms.PaintEventHandler(this.pnlOld_Paint);
     //
     // goodColorControl1
     //
     this.goodColorControl1.Color         = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.goodColorControl1.Location      = new System.Drawing.Point(12, 10);
     this.goodColorControl1.MinimumSize   = new System.Drawing.Size(310, 186);
     this.goodColorControl1.Name          = "goodColorControl1";
     this.goodColorControl1.ShowAlpha     = true;
     this.goodColorControl1.Size          = new System.Drawing.Size(314, 186);
     this.goodColorControl1.TabIndex      = 2;
     this.goodColorControl1.ColorChanged += new System.EventHandler(this.goodColorControl1_ColorChanged);
     //
     // GoodColorControl2
     //
     this.Controls.Add(this.chkAlpha);
     this.Controls.Add(this.lblNew);
     this.Controls.Add(this.lblOld);
     this.Controls.Add(this.pnlColors);
     this.Controls.Add(this.goodColorControl1);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOkay);
     this.Name = "GoodColorControl2";
     this.Size = new System.Drawing.Size(335, 253);
     this.pnlColors.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#6
0
 private void InitializeComponent()
 {
     this.lblR        = new System.Windows.Forms.Label();
     this.label1      = new System.Windows.Forms.Label();
     this.label2      = new System.Windows.Forms.Label();
     this.numB        = new System.Windows.Forms.NumericUpDown();
     this.numG        = new System.Windows.Forms.NumericUpDown();
     this.numR        = new System.Windows.Forms.NumericUpDown();
     this.numH        = new System.Windows.Forms.NumericUpDown();
     this.numS        = new System.Windows.Forms.NumericUpDown();
     this.numV        = new System.Windows.Forms.NumericUpDown();
     this.label3      = new System.Windows.Forms.Label();
     this.label4      = new System.Windows.Forms.Label();
     this.label5      = new System.Windows.Forms.Label();
     this.numA        = new System.Windows.Forms.NumericUpDown();
     this.lblA        = new System.Windows.Forms.Label();
     this.panel1      = new System.Windows.Forms.Panel();
     this.panel2      = new System.Windows.Forms.Panel();
     this.panel3      = new System.Windows.Forms.Panel();
     this.pnlAlpha    = new System.Windows.Forms.BufferedPanel();
     this.pnlColorBox = new System.Windows.Forms.BufferedPanel();
     this.pnlColorBar = new System.Windows.Forms.BufferedPanel();
     ((System.ComponentModel.ISupportInitialize)(this.numB)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numG)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numR)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numH)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numS)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numV)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numA)).BeginInit();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel3.SuspendLayout();
     this.SuspendLayout();
     //
     // lblR
     //
     this.lblR.Font      = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblR.Location  = new System.Drawing.Point(-1, 91);
     this.lblR.Name      = "lblR";
     this.lblR.Size      = new System.Drawing.Size(19, 20);
     this.lblR.TabIndex  = 2;
     this.lblR.Text      = "R";
     this.lblR.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.Font      = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location  = new System.Drawing.Point(-1, 129);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(19, 20);
     this.label1.TabIndex  = 3;
     this.label1.Text      = "B";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label2
     //
     this.label2.Font      = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location  = new System.Drawing.Point(-1, 110);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(19, 20);
     this.label2.TabIndex  = 4;
     this.label2.Text      = "G";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numB
     //
     this.numB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.numB.Location = new System.Drawing.Point(19, 130);
     this.numB.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.numB.Name     = "numB";
     this.numB.Size     = new System.Drawing.Size(43, 20);
     this.numB.TabIndex = 5;
     this.numB.Value    = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     //
     // numG
     //
     this.numG.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.numG.Location = new System.Drawing.Point(19, 111);
     this.numG.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.numG.Name     = "numG";
     this.numG.Size     = new System.Drawing.Size(43, 20);
     this.numG.TabIndex = 6;
     //
     // numR
     //
     this.numR.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.numR.Location = new System.Drawing.Point(19, 92);
     this.numR.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.numR.Name     = "numR";
     this.numR.Size     = new System.Drawing.Size(43, 20);
     this.numR.TabIndex = 7;
     //
     // numH
     //
     this.numH.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.numH.Location = new System.Drawing.Point(19, 20);
     this.numH.Maximum  = new decimal(new int[] {
         360,
         0,
         0,
         0
     });
     this.numH.Name     = "numH";
     this.numH.Size     = new System.Drawing.Size(43, 20);
     this.numH.TabIndex = 13;
     //
     // numS
     //
     this.numS.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.numS.Location = new System.Drawing.Point(19, 39);
     this.numS.Name     = "numS";
     this.numS.Size     = new System.Drawing.Size(43, 20);
     this.numS.TabIndex = 12;
     //
     // numV
     //
     this.numV.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.numV.Location = new System.Drawing.Point(19, 58);
     this.numV.Name     = "numV";
     this.numV.Size     = new System.Drawing.Size(43, 20);
     this.numV.TabIndex = 11;
     //
     // label3
     //
     this.label3.Font      = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.Location  = new System.Drawing.Point(-1, 38);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(19, 20);
     this.label3.TabIndex  = 10;
     this.label3.Text      = "S";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label4
     //
     this.label4.Font      = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.Location  = new System.Drawing.Point(-1, 57);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(19, 20);
     this.label4.TabIndex  = 9;
     this.label4.Text      = "V";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label5
     //
     this.label5.Font      = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label5.Location  = new System.Drawing.Point(-1, 19);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(19, 20);
     this.label5.TabIndex  = 8;
     this.label5.Text      = "H";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numA
     //
     this.numA.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.numA.Location = new System.Drawing.Point(19, 149);
     this.numA.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.numA.Name     = "numA";
     this.numA.Size     = new System.Drawing.Size(43, 20);
     this.numA.TabIndex = 15;
     //
     // lblA
     //
     this.lblA.Font      = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblA.Location  = new System.Drawing.Point(-1, 148);
     this.lblA.Name      = "lblA";
     this.lblA.Size      = new System.Drawing.Size(19, 20);
     this.lblA.TabIndex  = 14;
     this.lblA.Text      = "A";
     this.lblA.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.pnlColorBox);
     this.panel1.Controls.Add(this.pnlColorBar);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Left;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(217, 187);
     this.panel1.TabIndex = 16;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.pnlAlpha);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Left;
     this.panel2.Location = new System.Drawing.Point(217, 0);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(20, 187);
     this.panel2.TabIndex = 17;
     //
     // panel3
     //
     this.panel3.Controls.Add(this.numH);
     this.panel3.Controls.Add(this.lblR);
     this.panel3.Controls.Add(this.label1);
     this.panel3.Controls.Add(this.numA);
     this.panel3.Controls.Add(this.label2);
     this.panel3.Controls.Add(this.lblA);
     this.panel3.Controls.Add(this.numB);
     this.panel3.Controls.Add(this.numG);
     this.panel3.Controls.Add(this.numS);
     this.panel3.Controls.Add(this.numR);
     this.panel3.Controls.Add(this.numV);
     this.panel3.Controls.Add(this.label5);
     this.panel3.Controls.Add(this.label3);
     this.panel3.Controls.Add(this.label4);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel3.Location = new System.Drawing.Point(237, 0);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(73, 187);
     this.panel3.TabIndex = 18;
     //
     // pnlAlpha
     //
     this.pnlAlpha.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.pnlAlpha.BackColor  = System.Drawing.Color.Transparent;
     this.pnlAlpha.Location   = new System.Drawing.Point(3, 3);
     this.pnlAlpha.Name       = "pnlAlpha";
     this.pnlAlpha.Size       = new System.Drawing.Size(14, 180);
     this.pnlAlpha.TabIndex   = 2;
     this.pnlAlpha.Paint     += new System.Windows.Forms.PaintEventHandler(this.pnlAlpha_Paint);
     this.pnlAlpha.MouseMove += new System.Windows.Forms.MouseEventHandler(this.pnlAlpha_MouseMove);
     this.pnlAlpha.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pnlAlpha_MouseDown);
     this.pnlAlpha.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.pnlAlpha_MouseUp);
     //
     // pnlColorBox
     //
     this.pnlColorBox.BackColor  = System.Drawing.Color.Transparent;
     this.pnlColorBox.Location   = new System.Drawing.Point(3, 3);
     this.pnlColorBox.Name       = "pnlColorBox";
     this.pnlColorBox.Size       = new System.Drawing.Size(180, 180);
     this.pnlColorBox.TabIndex   = 0;
     this.pnlColorBox.Paint     += new System.Windows.Forms.PaintEventHandler(this.pnlColorBox_Paint);
     this.pnlColorBox.MouseMove += new System.Windows.Forms.MouseEventHandler(this.pnlColorBox_MouseMove);
     this.pnlColorBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pnlColorBox_MouseDown);
     this.pnlColorBox.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.pnlColorBox_MouseUp);
     //
     // pnlColorBar
     //
     this.pnlColorBar.BackColor  = System.Drawing.Color.Transparent;
     this.pnlColorBar.Location   = new System.Drawing.Point(189, 3);
     this.pnlColorBar.Name       = "pnlColorBar";
     this.pnlColorBar.Size       = new System.Drawing.Size(25, 180);
     this.pnlColorBar.TabIndex   = 1;
     this.pnlColorBar.Paint     += new System.Windows.Forms.PaintEventHandler(this.pnlColorBar_Paint);
     this.pnlColorBar.MouseMove += new System.Windows.Forms.MouseEventHandler(this.pnlColorBar_MouseMove);
     this.pnlColorBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pnlColorBar_MouseDown);
     this.pnlColorBar.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.pnlColorBar_MouseUp);
     //
     // GoodColorControl
     //
     this.Controls.Add(this.panel3);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.MinimumSize = new System.Drawing.Size(310, 187);
     this.Name        = "GoodColorControl";
     this.Size        = new System.Drawing.Size(310, 187);
     ((System.ComponentModel.ISupportInitialize)(this.numB)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numG)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numR)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numH)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numS)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numV)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numA)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#7
0
 private void InitializeComponent()
 {
     lblR         = new Label();
     label1       = new Label();
     label2       = new Label();
     numB         = new NumericUpDown();
     numG         = new NumericUpDown();
     numR         = new NumericUpDown();
     numH         = new NumericUpDown();
     numS         = new NumericUpDown();
     numV         = new NumericUpDown();
     label3       = new Label();
     label4       = new Label();
     label5       = new Label();
     numA         = new NumericUpDown();
     lblA         = new Label();
     panel1       = new Panel();
     pnlColorBox  = new BufferedPanel();
     pnlColorBar  = new BufferedPanel();
     panel2       = new Panel();
     pnlAlpha     = new BufferedPanel();
     panel3       = new Panel();
     txtColorCode = new TextBox();
     ((System.ComponentModel.ISupportInitialize)numB).BeginInit();
     ((System.ComponentModel.ISupportInitialize)numG).BeginInit();
     ((System.ComponentModel.ISupportInitialize)numR).BeginInit();
     ((System.ComponentModel.ISupportInitialize)numH).BeginInit();
     ((System.ComponentModel.ISupportInitialize)numS).BeginInit();
     ((System.ComponentModel.ISupportInitialize)numV).BeginInit();
     ((System.ComponentModel.ISupportInitialize)numA).BeginInit();
     panel1.SuspendLayout();
     panel2.SuspendLayout();
     panel3.SuspendLayout();
     SuspendLayout();
     //
     // lblR
     //
     lblR.Font      = new Font("Lucida Console", 9.75F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0);
     lblR.Location  = new Drawing.Point(3, 77);
     lblR.Name      = "lblR";
     lblR.Size      = new Drawing.Size(19, 20);
     lblR.TabIndex  = 2;
     lblR.Text      = "R";
     lblR.TextAlign = ContentAlignment.MiddleRight;
     //
     // label1
     //
     label1.Font      = new Font("Lucida Console", 9.75F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0);
     label1.Location  = new Drawing.Point(3, 115);
     label1.Name      = "label1";
     label1.Size      = new Drawing.Size(19, 20);
     label1.TabIndex  = 3;
     label1.Text      = "B";
     label1.TextAlign = ContentAlignment.MiddleRight;
     //
     // label2
     //
     label2.Font      = new Font("Lucida Console", 9.75F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0);
     label2.Location  = new Drawing.Point(3, 96);
     label2.Name      = "label2";
     label2.Size      = new Drawing.Size(19, 20);
     label2.TabIndex  = 4;
     label2.Text      = "G";
     label2.TextAlign = ContentAlignment.MiddleRight;
     //
     // numB
     //
     numB.Anchor = AnchorStyles.Top | AnchorStyles.Left
                   | AnchorStyles.Right;
     numB.Location = new Drawing.Point(23, 116);
     numB.Maximum  = new decimal(new int[]
     {
         255,
         0,
         0,
         0
     });
     numB.Name     = "numB";
     numB.Size     = new Drawing.Size(47, 20);
     numB.TabIndex = 5;
     //
     // numG
     //
     numG.Anchor = AnchorStyles.Top | AnchorStyles.Left
                   | AnchorStyles.Right;
     numG.Location = new Drawing.Point(23, 97);
     numG.Maximum  = new decimal(new int[]
     {
         255,
         0,
         0,
         0
     });
     numG.Name     = "numG";
     numG.Size     = new Drawing.Size(47, 20);
     numG.TabIndex = 6;
     //
     // numR
     //
     numR.Anchor = AnchorStyles.Top | AnchorStyles.Left
                   | AnchorStyles.Right;
     numR.Location = new Drawing.Point(23, 78);
     numR.Maximum  = new decimal(new int[]
     {
         255,
         0,
         0,
         0
     });
     numR.Name     = "numR";
     numR.Size     = new Drawing.Size(47, 20);
     numR.TabIndex = 7;
     //
     // numH
     //
     numH.Anchor = AnchorStyles.Top | AnchorStyles.Left
                   | AnchorStyles.Right;
     numH.Location = new Drawing.Point(23, 6);
     numH.Maximum  = new decimal(new int[]
     {
         360,
         0,
         0,
         0
     });
     numH.Name     = "numH";
     numH.Size     = new Drawing.Size(47, 20);
     numH.TabIndex = 13;
     //
     // numS
     //
     numS.Anchor = AnchorStyles.Top | AnchorStyles.Left
                   | AnchorStyles.Right;
     numS.Location = new Drawing.Point(23, 25);
     numS.Name     = "numS";
     numS.Size     = new Drawing.Size(47, 20);
     numS.TabIndex = 12;
     //
     // numV
     //
     numV.Anchor = AnchorStyles.Top | AnchorStyles.Left
                   | AnchorStyles.Right;
     numV.Location = new Drawing.Point(23, 44);
     numV.Name     = "numV";
     numV.Size     = new Drawing.Size(47, 20);
     numV.TabIndex = 11;
     //
     // label3
     //
     label3.Font      = new Font("Lucida Console", 9.75F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0);
     label3.Location  = new Drawing.Point(3, 24);
     label3.Name      = "label3";
     label3.Size      = new Drawing.Size(19, 20);
     label3.TabIndex  = 10;
     label3.Text      = "S";
     label3.TextAlign = ContentAlignment.MiddleRight;
     //
     // label4
     //
     label4.Font      = new Font("Lucida Console", 9.75F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0);
     label4.Location  = new Drawing.Point(3, 43);
     label4.Name      = "label4";
     label4.Size      = new Drawing.Size(19, 20);
     label4.TabIndex  = 9;
     label4.Text      = "V";
     label4.TextAlign = ContentAlignment.MiddleRight;
     //
     // label5
     //
     label5.Font      = new Font("Lucida Console", 9.75F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0);
     label5.Location  = new Drawing.Point(3, 5);
     label5.Name      = "label5";
     label5.Size      = new Drawing.Size(19, 20);
     label5.TabIndex  = 8;
     label5.Text      = "H";
     label5.TextAlign = ContentAlignment.MiddleRight;
     //
     // numA
     //
     numA.Anchor = AnchorStyles.Top | AnchorStyles.Left
                   | AnchorStyles.Right;
     numA.Location = new Drawing.Point(23, 135);
     numA.Maximum  = new decimal(new int[]
     {
         255,
         0,
         0,
         0
     });
     numA.Name     = "numA";
     numA.Size     = new Drawing.Size(47, 20);
     numA.TabIndex = 15;
     numA.Value    = new decimal(new int[]
     {
         255,
         0,
         0,
         0
     });
     //
     // lblA
     //
     lblA.Font      = new Font("Lucida Console", 9.75F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0);
     lblA.Location  = new Drawing.Point(3, 134);
     lblA.Name      = "lblA";
     lblA.Size      = new Drawing.Size(19, 20);
     lblA.TabIndex  = 14;
     lblA.Text      = "A";
     lblA.TextAlign = ContentAlignment.MiddleRight;
     //
     // panel1
     //
     panel1.Controls.Add(pnlColorBox);
     panel1.Controls.Add(pnlColorBar);
     panel1.Dock     = DockStyle.Left;
     panel1.Location = new Drawing.Point(0, 0);
     panel1.Name     = "panel1";
     panel1.Size     = new Drawing.Size(217, 187);
     panel1.TabIndex = 16;
     //
     // pnlColorBox
     //
     pnlColorBox.BackColor  = Color.Transparent;
     pnlColorBox.Location   = new Drawing.Point(3, 3);
     pnlColorBox.Name       = "pnlColorBox";
     pnlColorBox.Size       = new Drawing.Size(180, 180);
     pnlColorBox.TabIndex   = 0;
     pnlColorBox.Paint     += new PaintEventHandler(pnlColorBox_Paint);
     pnlColorBox.MouseDown += new MouseEventHandler(pnlColorBox_MouseDown);
     pnlColorBox.MouseMove += new MouseEventHandler(pnlColorBox_MouseMove);
     pnlColorBox.MouseUp   += new MouseEventHandler(pnlColorBox_MouseUp);
     //
     // pnlColorBar
     //
     pnlColorBar.BackColor  = Color.Transparent;
     pnlColorBar.Location   = new Drawing.Point(189, 3);
     pnlColorBar.Name       = "pnlColorBar";
     pnlColorBar.Size       = new Drawing.Size(25, 180);
     pnlColorBar.TabIndex   = 1;
     pnlColorBar.Paint     += new PaintEventHandler(pnlColorBar_Paint);
     pnlColorBar.MouseDown += new MouseEventHandler(pnlColorBar_MouseDown);
     pnlColorBar.MouseMove += new MouseEventHandler(pnlColorBar_MouseMove);
     pnlColorBar.MouseUp   += new MouseEventHandler(pnlColorBar_MouseUp);
     //
     // panel2
     //
     panel2.Controls.Add(pnlAlpha);
     panel2.Dock     = DockStyle.Left;
     panel2.Location = new Drawing.Point(217, 0);
     panel2.Name     = "panel2";
     panel2.Size     = new Drawing.Size(20, 187);
     panel2.TabIndex = 17;
     //
     // pnlAlpha
     //
     pnlAlpha.Anchor = AnchorStyles.Top | AnchorStyles.Left
                       | AnchorStyles.Right;
     pnlAlpha.BackColor  = Color.Transparent;
     pnlAlpha.Location   = new Drawing.Point(3, 3);
     pnlAlpha.Name       = "pnlAlpha";
     pnlAlpha.Size       = new Drawing.Size(14, 180);
     pnlAlpha.TabIndex   = 2;
     pnlAlpha.Paint     += new PaintEventHandler(pnlAlpha_Paint);
     pnlAlpha.MouseDown += new MouseEventHandler(pnlAlpha_MouseDown);
     pnlAlpha.MouseMove += new MouseEventHandler(pnlAlpha_MouseMove);
     pnlAlpha.MouseUp   += new MouseEventHandler(pnlAlpha_MouseUp);
     //
     // panel3
     //
     panel3.Controls.Add(txtColorCode);
     panel3.Controls.Add(numH);
     panel3.Controls.Add(lblR);
     panel3.Controls.Add(label1);
     panel3.Controls.Add(numA);
     panel3.Controls.Add(label2);
     panel3.Controls.Add(lblA);
     panel3.Controls.Add(numB);
     panel3.Controls.Add(numG);
     panel3.Controls.Add(numS);
     panel3.Controls.Add(numR);
     panel3.Controls.Add(numV);
     panel3.Controls.Add(label5);
     panel3.Controls.Add(label3);
     panel3.Controls.Add(label4);
     panel3.Dock     = DockStyle.Fill;
     panel3.Location = new Drawing.Point(237, 0);
     panel3.Name     = "panel3";
     panel3.Size     = new Drawing.Size(77, 187);
     panel3.TabIndex = 18;
     //
     // txtColorCode
     //
     txtColorCode.Location     = new Drawing.Point(6, 161);
     txtColorCode.Name         = "txtColorCode";
     txtColorCode.Size         = new Drawing.Size(64, 20);
     txtColorCode.TabIndex     = 16;
     txtColorCode.Text         = "000000FF";
     txtColorCode.TextAlign    = HorizontalAlignment.Center;
     txtColorCode.TextChanged += txtColorCode_TextChanged;
     txtColorCode.KeyPress    += new KeyPressEventHandler(txtColorCode_KeyPress);
     //
     // GoodColorControl
     //
     Controls.Add(panel3);
     Controls.Add(panel2);
     Controls.Add(panel1);
     MinimumSize = new Drawing.Size(310, 187);
     Name        = "GoodColorControl";
     Size        = new Drawing.Size(314, 187);
     ((System.ComponentModel.ISupportInitialize)numB).EndInit();
     ((System.ComponentModel.ISupportInitialize)numG).EndInit();
     ((System.ComponentModel.ISupportInitialize)numR).EndInit();
     ((System.ComponentModel.ISupportInitialize)numH).EndInit();
     ((System.ComponentModel.ISupportInitialize)numS).EndInit();
     ((System.ComponentModel.ISupportInitialize)numV).EndInit();
     ((System.ComponentModel.ISupportInitialize)numA).EndInit();
     panel1.ResumeLayout(false);
     panel2.ResumeLayout(false);
     panel3.ResumeLayout(false);
     panel3.PerformLayout();
     ResumeLayout(false);
 }
示例#8
0
 private void InitializeComponent()
 {
     this.lblStartText  = new System.Windows.Forms.Label();
     this.label2        = new System.Windows.Forms.Label();
     this.lblStartColor = new System.Windows.Forms.Label();
     this.lblEndText    = new System.Windows.Forms.Label();
     this.label4        = new System.Windows.Forms.Label();
     this.lblEndColor   = new System.Windows.Forms.Label();
     this.btnOkay       = new System.Windows.Forms.Button();
     this.btnCancel     = new System.Windows.Forms.Button();
     this.btnCopy       = new System.Windows.Forms.Button();
     this.pnlPreview    = new System.Windows.Forms.BufferedPanel();
     this.SuspendLayout();
     //
     // lblStartText
     //
     this.lblStartText.BackColor   = System.Drawing.Color.White;
     this.lblStartText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblStartText.Font        = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblStartText.Location    = new System.Drawing.Point(69, 8);
     this.lblStartText.Name        = "lblStartText";
     this.lblStartText.Size        = new System.Drawing.Size(154, 20);
     this.lblStartText.TabIndex    = 4;
     this.lblStartText.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     this.lblStartText.Click      += new System.EventHandler(this.lblStartText_Click);
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(-1, 8);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(71, 20);
     this.label2.TabIndex  = 3;
     this.label2.Text      = "Start Color:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lblStartColor
     //
     this.lblStartColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblStartColor.Location    = new System.Drawing.Point(222, 8);
     this.lblStartColor.Name        = "lblStartColor";
     this.lblStartColor.Size        = new System.Drawing.Size(40, 20);
     this.lblStartColor.TabIndex    = 2;
     this.lblStartColor.Click      += new System.EventHandler(this.lblStartText_Click);
     //
     // lblEndText
     //
     this.lblEndText.BackColor   = System.Drawing.Color.White;
     this.lblEndText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblEndText.Font        = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblEndText.Location    = new System.Drawing.Point(69, 52);
     this.lblEndText.Name        = "lblEndText";
     this.lblEndText.Size        = new System.Drawing.Size(154, 20);
     this.lblEndText.TabIndex    = 4;
     this.lblEndText.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     this.lblEndText.Click      += new System.EventHandler(this.lblEndText_Click);
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(2, 52);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(68, 20);
     this.label4.TabIndex  = 3;
     this.label4.Text      = "End Color:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lblEndColor
     //
     this.lblEndColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblEndColor.Location    = new System.Drawing.Point(222, 52);
     this.lblEndColor.Name        = "lblEndColor";
     this.lblEndColor.Size        = new System.Drawing.Size(40, 20);
     this.lblEndColor.TabIndex    = 2;
     this.lblEndColor.Click      += new System.EventHandler(this.lblEndText_Click);
     //
     // btnOkay
     //
     this.btnOkay.Anchor   = System.Windows.Forms.AnchorStyles.Bottom;
     this.btnOkay.Location = new System.Drawing.Point(70, 119);
     this.btnOkay.Name     = "btnOkay";
     this.btnOkay.Size     = new System.Drawing.Size(65, 23);
     this.btnOkay.TabIndex = 6;
     this.btnOkay.Text     = "Okay";
     this.btnOkay.UseVisualStyleBackColor = true;
     this.btnOkay.Click += new System.EventHandler(this.btnOkay_Click);
     //
     // btnCancel
     //
     this.btnCancel.Anchor   = System.Windows.Forms.AnchorStyles.Bottom;
     this.btnCancel.Location = new System.Drawing.Point(141, 119);
     this.btnCancel.Name     = "btnCancel";
     this.btnCancel.Size     = new System.Drawing.Size(65, 23);
     this.btnCancel.TabIndex = 7;
     this.btnCancel.Text     = "Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // btnCopy
     //
     this.btnCopy.Location = new System.Drawing.Point(113, 30);
     this.btnCopy.Name     = "btnCopy";
     this.btnCopy.Size     = new System.Drawing.Size(50, 20);
     this.btnCopy.TabIndex = 9;
     this.btnCopy.Text     = "Copy";
     this.btnCopy.UseVisualStyleBackColor = true;
     this.btnCopy.Click += new System.EventHandler(this.btnCopy_Click);
     //
     // pnlPreview
     //
     this.pnlPreview.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.pnlPreview.Location    = new System.Drawing.Point(12, 81);
     this.pnlPreview.Name        = "pnlPreview";
     this.pnlPreview.Size        = new System.Drawing.Size(250, 27);
     this.pnlPreview.TabIndex    = 8;
     this.pnlPreview.Paint      += new System.Windows.Forms.PaintEventHandler(this.pnlPreview_Paint);
     //
     // GradientDialog
     //
     this.ClientSize = new System.Drawing.Size(276, 154);
     this.Controls.Add(this.lblStartColor);
     this.Controls.Add(this.lblStartText);
     this.Controls.Add(this.lblEndText);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.btnCopy);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.lblEndColor);
     this.Controls.Add(this.pnlPreview);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOkay);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "GradientDialog";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.Text            = "Gradient Fill";
     this.ResumeLayout(false);
 }
示例#9
0
 private void InitializeComponent()
 {
     lblStartText  = new Label();
     label2        = new Label();
     lblStartColor = new Label();
     lblEndText    = new Label();
     label4        = new Label();
     lblEndColor   = new Label();
     btnOkay       = new Button();
     btnCancel     = new Button();
     btnCopy       = new Button();
     pnlPreview    = new BufferedPanel();
     SuspendLayout();
     //
     // lblStartText
     //
     lblStartText.BackColor   = Color.White;
     lblStartText.BorderStyle = BorderStyle.FixedSingle;
     lblStartText.Font        = new Font("Courier New", 9F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0);
     lblStartText.Location    = new Drawing.Point(69, 8);
     lblStartText.Name        = "lblStartText";
     lblStartText.Size        = new Drawing.Size(154, 20);
     lblStartText.TabIndex    = 4;
     lblStartText.TextAlign   = ContentAlignment.MiddleCenter;
     lblStartText.Click      += lblStartText_Click;
     //
     // label2
     //
     label2.Location  = new Drawing.Point(-1, 8);
     label2.Name      = "label2";
     label2.Size      = new Drawing.Size(71, 20);
     label2.TabIndex  = 3;
     label2.Text      = "Start Color:";
     label2.TextAlign = ContentAlignment.MiddleRight;
     //
     // lblStartColor
     //
     lblStartColor.BorderStyle = BorderStyle.FixedSingle;
     lblStartColor.Location    = new Drawing.Point(222, 8);
     lblStartColor.Name        = "lblStartColor";
     lblStartColor.Size        = new Drawing.Size(40, 20);
     lblStartColor.TabIndex    = 2;
     lblStartColor.Click      += lblStartText_Click;
     //
     // lblEndText
     //
     lblEndText.BackColor   = Color.White;
     lblEndText.BorderStyle = BorderStyle.FixedSingle;
     lblEndText.Font        = new Font("Courier New", 9F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0);
     lblEndText.Location    = new Drawing.Point(69, 52);
     lblEndText.Name        = "lblEndText";
     lblEndText.Size        = new Drawing.Size(154, 20);
     lblEndText.TabIndex    = 4;
     lblEndText.TextAlign   = ContentAlignment.MiddleCenter;
     lblEndText.Click      += lblEndText_Click;
     //
     // label4
     //
     label4.Location  = new Drawing.Point(2, 52);
     label4.Name      = "label4";
     label4.Size      = new Drawing.Size(68, 20);
     label4.TabIndex  = 3;
     label4.Text      = "End Color:";
     label4.TextAlign = ContentAlignment.MiddleRight;
     //
     // lblEndColor
     //
     lblEndColor.BorderStyle = BorderStyle.FixedSingle;
     lblEndColor.Location    = new Drawing.Point(222, 52);
     lblEndColor.Name        = "lblEndColor";
     lblEndColor.Size        = new Drawing.Size(40, 20);
     lblEndColor.TabIndex    = 2;
     lblEndColor.Click      += lblEndText_Click;
     //
     // btnOkay
     //
     btnOkay.Anchor   = AnchorStyles.Bottom;
     btnOkay.Location = new Drawing.Point(70, 119);
     btnOkay.Name     = "btnOkay";
     btnOkay.Size     = new Drawing.Size(65, 23);
     btnOkay.TabIndex = 6;
     btnOkay.Text     = "Okay";
     btnOkay.UseVisualStyleBackColor = true;
     btnOkay.Click += btnOkay_Click;
     //
     // btnCancel
     //
     btnCancel.Anchor   = AnchorStyles.Bottom;
     btnCancel.Location = new Drawing.Point(141, 119);
     btnCancel.Name     = "btnCancel";
     btnCancel.Size     = new Drawing.Size(65, 23);
     btnCancel.TabIndex = 7;
     btnCancel.Text     = "Cancel";
     btnCancel.UseVisualStyleBackColor = true;
     btnCancel.Click += btnCancel_Click;
     //
     // btnCopy
     //
     btnCopy.Location = new Drawing.Point(113, 30);
     btnCopy.Name     = "btnCopy";
     btnCopy.Size     = new Drawing.Size(50, 20);
     btnCopy.TabIndex = 9;
     btnCopy.Text     = "Copy";
     btnCopy.UseVisualStyleBackColor = true;
     btnCopy.Click += btnCopy_Click;
     //
     // pnlPreview
     //
     pnlPreview.BorderStyle = BorderStyle.FixedSingle;
     pnlPreview.Location    = new Drawing.Point(12, 81);
     pnlPreview.Name        = "pnlPreview";
     pnlPreview.Size        = new Drawing.Size(250, 27);
     pnlPreview.TabIndex    = 8;
     pnlPreview.Paint      += new PaintEventHandler(pnlPreview_Paint);
     //
     // GradientDialog
     //
     ClientSize = new Drawing.Size(276, 154);
     Controls.Add(lblStartColor);
     Controls.Add(lblStartText);
     Controls.Add(lblEndText);
     Controls.Add(label2);
     Controls.Add(btnCopy);
     Controls.Add(label4);
     Controls.Add(lblEndColor);
     Controls.Add(pnlPreview);
     Controls.Add(btnCancel);
     Controls.Add(btnOkay);
     FormBorderStyle = FormBorderStyle.FixedToolWindow;
     MaximizeBox     = false;
     MinimizeBox     = false;
     Name            = "GradientDialog";
     ShowIcon        = false;
     ShowInTaskbar   = false;
     Text            = "Gradient Fill";
     ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.btnOkay = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.pnlPreview = new System.Windows.Forms.BufferedPanel();
     this.startArrow = new System.Windows.Forms.Panel();
     this.endArrow = new System.Windows.Forms.Panel();
     this.panel3 = new System.Windows.Forms.Panel();
     this.panel3.SuspendLayout();
     this.SuspendLayout();
     //
     // btnOkay
     //
     this.btnOkay.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
     this.btnOkay.Location = new System.Drawing.Point(193, 105);
     this.btnOkay.Name = "btnOkay";
     this.btnOkay.Size = new System.Drawing.Size(65, 23);
     this.btnOkay.TabIndex = 6;
     this.btnOkay.Text = "Okay";
     this.btnOkay.UseVisualStyleBackColor = true;
     this.btnOkay.Click += new System.EventHandler(this.btnOkay_Click);
     //
     // btnCancel
     //
     this.btnCancel.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
     this.btnCancel.Location = new System.Drawing.Point(264, 105);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(65, 23);
     this.btnCancel.TabIndex = 7;
     this.btnCancel.Text = "Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // pnlPreview
     //
     this.pnlPreview.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.pnlPreview.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.pnlPreview.Location = new System.Drawing.Point(12, 12);
     this.pnlPreview.Name = "pnlPreview";
     this.pnlPreview.Size = new System.Drawing.Size(499, 61);
     this.pnlPreview.TabIndex = 8;
     this.pnlPreview.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlPreview_Paint);
     //
     // startArrow
     //
     this.startArrow.Location = new System.Drawing.Point(0, 0);
     this.startArrow.Name = "startArrow";
     this.startArrow.Size = new System.Drawing.Size(24, 20);
     this.startArrow.TabIndex = 9;
     //
     // endArrow
     //
     this.endArrow.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.endArrow.Location = new System.Drawing.Point(475, 0);
     this.endArrow.Name = "endArrow";
     this.endArrow.Size = new System.Drawing.Size(24, 20);
     this.endArrow.TabIndex = 10;
     //
     // panel3
     //
     this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.panel3.Controls.Add(this.startArrow);
     this.panel3.Controls.Add(this.endArrow);
     this.panel3.Location = new System.Drawing.Point(12, 79);
     this.panel3.Name = "panel3";
     this.panel3.Size = new System.Drawing.Size(499, 20);
     this.panel3.TabIndex = 11;
     this.panel3.DoubleClick += new System.EventHandler(this.panel3_DoubleClick);
     //
     // GradientDialog2
     //
     this.ClientSize = new System.Drawing.Size(523, 140);
     this.Controls.Add(this.panel3);
     this.Controls.Add(this.pnlPreview);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOkay);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.MinimumSize = new System.Drawing.Size(164, 164);
     this.Name = "GradientDialog2";
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.Text = "Gradient Fill";
     this.panel3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.lblR = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.numB = new System.Windows.Forms.NumericUpDown();
     this.numG = new System.Windows.Forms.NumericUpDown();
     this.numR = new System.Windows.Forms.NumericUpDown();
     this.numH = new System.Windows.Forms.NumericUpDown();
     this.numS = new System.Windows.Forms.NumericUpDown();
     this.numV = new System.Windows.Forms.NumericUpDown();
     this.label3 = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.label5 = new System.Windows.Forms.Label();
     this.numA = new System.Windows.Forms.NumericUpDown();
     this.lblA = new System.Windows.Forms.Label();
     this.panel1 = new System.Windows.Forms.Panel();
     this.pnlColorBox = new System.Windows.Forms.BufferedPanel();
     this.pnlColorBar = new System.Windows.Forms.BufferedPanel();
     this.panel2 = new System.Windows.Forms.Panel();
     this.pnlAlpha = new System.Windows.Forms.BufferedPanel();
     this.panel3 = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.numB)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numG)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numR)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numH)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numS)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numV)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numA)).BeginInit();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel3.SuspendLayout();
     this.SuspendLayout();
     //
     // lblR
     //
     this.lblR.Font = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblR.Location = new System.Drawing.Point(-1, 91);
     this.lblR.Name = "lblR";
     this.lblR.Size = new System.Drawing.Size(19, 20);
     this.lblR.TabIndex = 2;
     this.lblR.Text = "R";
     this.lblR.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.Font = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(-1, 129);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(19, 20);
     this.label1.TabIndex = 3;
     this.label1.Text = "B";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label2
     //
     this.label2.Font = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(-1, 110);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(19, 20);
     this.label2.TabIndex = 4;
     this.label2.Text = "G";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numB
     //
     this.numB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.numB.Location = new System.Drawing.Point(19, 130);
     this.numB.Maximum = new decimal(new int[] {
     255,
     0,
     0,
     0});
     this.numB.Name = "numB";
     this.numB.Size = new System.Drawing.Size(43, 20);
     this.numB.TabIndex = 5;
     this.numB.Value = new decimal(new int[] {
     255,
     0,
     0,
     0});
     //
     // numG
     //
     this.numG.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.numG.Location = new System.Drawing.Point(19, 111);
     this.numG.Maximum = new decimal(new int[] {
     255,
     0,
     0,
     0});
     this.numG.Name = "numG";
     this.numG.Size = new System.Drawing.Size(43, 20);
     this.numG.TabIndex = 6;
     //
     // numR
     //
     this.numR.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.numR.Location = new System.Drawing.Point(19, 92);
     this.numR.Maximum = new decimal(new int[] {
     255,
     0,
     0,
     0});
     this.numR.Name = "numR";
     this.numR.Size = new System.Drawing.Size(43, 20);
     this.numR.TabIndex = 7;
     //
     // numH
     //
     this.numH.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.numH.Location = new System.Drawing.Point(19, 20);
     this.numH.Maximum = new decimal(new int[] {
     360,
     0,
     0,
     0});
     this.numH.Name = "numH";
     this.numH.Size = new System.Drawing.Size(43, 20);
     this.numH.TabIndex = 13;
     //
     // numS
     //
     this.numS.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.numS.Location = new System.Drawing.Point(19, 39);
     this.numS.Name = "numS";
     this.numS.Size = new System.Drawing.Size(43, 20);
     this.numS.TabIndex = 12;
     //
     // numV
     //
     this.numV.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.numV.Location = new System.Drawing.Point(19, 58);
     this.numV.Name = "numV";
     this.numV.Size = new System.Drawing.Size(43, 20);
     this.numV.TabIndex = 11;
     //
     // label3
     //
     this.label3.Font = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.Location = new System.Drawing.Point(-1, 38);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(19, 20);
     this.label3.TabIndex = 10;
     this.label3.Text = "S";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label4
     //
     this.label4.Font = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.Location = new System.Drawing.Point(-1, 57);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(19, 20);
     this.label4.TabIndex = 9;
     this.label4.Text = "V";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label5
     //
     this.label5.Font = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label5.Location = new System.Drawing.Point(-1, 19);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(19, 20);
     this.label5.TabIndex = 8;
     this.label5.Text = "H";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numA
     //
     this.numA.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.numA.Location = new System.Drawing.Point(19, 149);
     this.numA.Maximum = new decimal(new int[] {
     255,
     0,
     0,
     0});
     this.numA.Name = "numA";
     this.numA.Size = new System.Drawing.Size(43, 20);
     this.numA.TabIndex = 15;
     //
     // lblA
     //
     this.lblA.Font = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblA.Location = new System.Drawing.Point(-1, 148);
     this.lblA.Name = "lblA";
     this.lblA.Size = new System.Drawing.Size(19, 20);
     this.lblA.TabIndex = 14;
     this.lblA.Text = "A";
     this.lblA.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.pnlColorBox);
     this.panel1.Controls.Add(this.pnlColorBar);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(217, 187);
     this.panel1.TabIndex = 16;
     //
     // pnlColorBox
     //
     this.pnlColorBox.BackColor = System.Drawing.Color.Transparent;
     this.pnlColorBox.Location = new System.Drawing.Point(3, 3);
     this.pnlColorBox.Name = "pnlColorBox";
     this.pnlColorBox.Size = new System.Drawing.Size(180, 180);
     this.pnlColorBox.TabIndex = 0;
     this.pnlColorBox.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlColorBox_Paint);
     this.pnlColorBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pnlColorBox_MouseDown);
     this.pnlColorBox.MouseMove += new System.Windows.Forms.MouseEventHandler(this.pnlColorBox_MouseMove);
     this.pnlColorBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.pnlColorBox_MouseUp);
     //
     // pnlColorBar
     //
     this.pnlColorBar.BackColor = System.Drawing.Color.Transparent;
     this.pnlColorBar.Location = new System.Drawing.Point(189, 3);
     this.pnlColorBar.Name = "pnlColorBar";
     this.pnlColorBar.Size = new System.Drawing.Size(25, 180);
     this.pnlColorBar.TabIndex = 1;
     this.pnlColorBar.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlColorBar_Paint);
     this.pnlColorBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pnlColorBar_MouseDown);
     this.pnlColorBar.MouseMove += new System.Windows.Forms.MouseEventHandler(this.pnlColorBar_MouseMove);
     this.pnlColorBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.pnlColorBar_MouseUp);
     //
     // panel2
     //
     this.panel2.Controls.Add(this.pnlAlpha);
     this.panel2.Dock = System.Windows.Forms.DockStyle.Left;
     this.panel2.Location = new System.Drawing.Point(217, 0);
     this.panel2.Name = "panel2";
     this.panel2.Size = new System.Drawing.Size(20, 187);
     this.panel2.TabIndex = 17;
     //
     // pnlAlpha
     //
     this.pnlAlpha.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.pnlAlpha.BackColor = System.Drawing.Color.Transparent;
     this.pnlAlpha.Location = new System.Drawing.Point(3, 3);
     this.pnlAlpha.Name = "pnlAlpha";
     this.pnlAlpha.Size = new System.Drawing.Size(14, 180);
     this.pnlAlpha.TabIndex = 2;
     this.pnlAlpha.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlAlpha_Paint);
     this.pnlAlpha.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pnlAlpha_MouseDown);
     this.pnlAlpha.MouseMove += new System.Windows.Forms.MouseEventHandler(this.pnlAlpha_MouseMove);
     this.pnlAlpha.MouseUp += new System.Windows.Forms.MouseEventHandler(this.pnlAlpha_MouseUp);
     //
     // panel3
     //
     this.panel3.Controls.Add(this.numH);
     this.panel3.Controls.Add(this.lblR);
     this.panel3.Controls.Add(this.label1);
     this.panel3.Controls.Add(this.numA);
     this.panel3.Controls.Add(this.label2);
     this.panel3.Controls.Add(this.lblA);
     this.panel3.Controls.Add(this.numB);
     this.panel3.Controls.Add(this.numG);
     this.panel3.Controls.Add(this.numS);
     this.panel3.Controls.Add(this.numR);
     this.panel3.Controls.Add(this.numV);
     this.panel3.Controls.Add(this.label5);
     this.panel3.Controls.Add(this.label3);
     this.panel3.Controls.Add(this.label4);
     this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
     this.panel3.Location = new System.Drawing.Point(237, 0);
     this.panel3.Name = "panel3";
     this.panel3.Size = new System.Drawing.Size(73, 187);
     this.panel3.TabIndex = 18;
     //
     // GoodColorControl
     //
     this.Controls.Add(this.panel3);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.MinimumSize = new System.Drawing.Size(310, 187);
     this.Name = "GoodColorControl";
     this.Size = new System.Drawing.Size(310, 187);
     ((System.ComponentModel.ISupportInitialize)(this.numB)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numG)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numR)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numH)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numS)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numV)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numA)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.btnOkay    = new System.Windows.Forms.Button();
     this.btnCancel  = new System.Windows.Forms.Button();
     this.pnlPreview = new System.Windows.Forms.BufferedPanel();
     this.startArrow = new System.Windows.Forms.Panel();
     this.endArrow   = new System.Windows.Forms.Panel();
     this.panel3     = new System.Windows.Forms.Panel();
     this.panel3.SuspendLayout();
     this.SuspendLayout();
     //
     // btnOkay
     //
     this.btnOkay.Anchor   = System.Windows.Forms.AnchorStyles.Bottom;
     this.btnOkay.Location = new System.Drawing.Point(193, 105);
     this.btnOkay.Name     = "btnOkay";
     this.btnOkay.Size     = new System.Drawing.Size(65, 23);
     this.btnOkay.TabIndex = 6;
     this.btnOkay.Text     = "Okay";
     this.btnOkay.UseVisualStyleBackColor = true;
     this.btnOkay.Click += new System.EventHandler(this.btnOkay_Click);
     //
     // btnCancel
     //
     this.btnCancel.Anchor   = System.Windows.Forms.AnchorStyles.Bottom;
     this.btnCancel.Location = new System.Drawing.Point(264, 105);
     this.btnCancel.Name     = "btnCancel";
     this.btnCancel.Size     = new System.Drawing.Size(65, 23);
     this.btnCancel.TabIndex = 7;
     this.btnCancel.Text     = "Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // pnlPreview
     //
     this.pnlPreview.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.pnlPreview.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.pnlPreview.Location    = new System.Drawing.Point(12, 12);
     this.pnlPreview.Name        = "pnlPreview";
     this.pnlPreview.Size        = new System.Drawing.Size(499, 61);
     this.pnlPreview.TabIndex    = 8;
     this.pnlPreview.Paint      += new System.Windows.Forms.PaintEventHandler(this.pnlPreview_Paint);
     //
     // startArrow
     //
     this.startArrow.Location = new System.Drawing.Point(0, 0);
     this.startArrow.Name     = "startArrow";
     this.startArrow.Size     = new System.Drawing.Size(24, 20);
     this.startArrow.TabIndex = 9;
     //
     // endArrow
     //
     this.endArrow.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.endArrow.Location = new System.Drawing.Point(475, 0);
     this.endArrow.Name     = "endArrow";
     this.endArrow.Size     = new System.Drawing.Size(24, 20);
     this.endArrow.TabIndex = 10;
     //
     // panel3
     //
     this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.panel3.Controls.Add(this.startArrow);
     this.panel3.Controls.Add(this.endArrow);
     this.panel3.Location     = new System.Drawing.Point(12, 79);
     this.panel3.Name         = "panel3";
     this.panel3.Size         = new System.Drawing.Size(499, 20);
     this.panel3.TabIndex     = 11;
     this.panel3.DoubleClick += new System.EventHandler(this.panel3_DoubleClick);
     //
     // GradientDialog2
     //
     this.ClientSize = new System.Drawing.Size(523, 140);
     this.Controls.Add(this.panel3);
     this.Controls.Add(this.pnlPreview);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOkay);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.MinimumSize     = new System.Drawing.Size(164, 164);
     this.Name            = "GradientDialog2";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.Text            = "Gradient Fill";
     this.panel3.ResumeLayout(false);
     this.ResumeLayout(false);
 }