/// <summary> /// Erforderliche Methode für die Designerunterstützung. /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ColorPicker)); this.label1 = new System.Windows.Forms.Label(); this.btnCancel = new System.Windows.Forms.Button(); this.btnOK = new System.Windows.Forms.Button(); this.contextMenu = new System.Windows.Forms.ContextMenu(); this.ctxHSV_RGB = new System.Windows.Forms.MenuItem(); this.ctxHSV_LAB = new System.Windows.Forms.MenuItem(); this.separator1 = new System.Windows.Forms.MenuItem(); this.ctxPrevColor = new System.Windows.Forms.MenuItem(); this.ctxCopy = new System.Windows.Forms.MenuItem(); this.ctxPaste = new System.Windows.Forms.MenuItem(); this.rdHSV_H = new System.Windows.Forms.RadioButton(); this.rdHSV_S = new System.Windows.Forms.RadioButton(); this.rdHSV_V = new System.Windows.Forms.RadioButton(); this.rdSecond_1 = new System.Windows.Forms.RadioButton(); this.rdSecond_2 = new System.Windows.Forms.RadioButton(); this.rdSecond_3 = new System.Windows.Forms.RadioButton(); this.tbHSV_H = new System.Windows.Forms.TextBox(); this.tbHSV_S = new System.Windows.Forms.TextBox(); this.tbHSV_V = new System.Windows.Forms.TextBox(); this.tbSecond_1 = new System.Windows.Forms.TextBox(); this.tbSecond_2 = new System.Windows.Forms.TextBox(); this.tbSecond_3 = new System.Windows.Forms.TextBox(); this.lblHSV_H = new System.Windows.Forms.Label(); this.lblHSV_S = new System.Windows.Forms.Label(); this.lblHSV_V = new System.Windows.Forms.Label(); this.lblSecond_1 = new System.Windows.Forms.Label(); this.lblSecond_2 = new System.Windows.Forms.Label(); this.lblSecond_3 = new System.Windows.Forms.Label(); this.toolTip = new System.Windows.Forms.ToolTip(this.components); this.lblColorOut = new DrawingEx.ColorManagement.ColorLabel(); this.colorSelectionFader1 = new DrawingEx.ColorManagement.ColorModels.Selection.ColorSelectionFader(); this.colorSelectionPlane1 = new DrawingEx.ColorManagement.ColorModels.Selection.ColorSelectionPlane(); this.SuspendLayout(); // // label1 // this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label1.BackColor = System.Drawing.SystemColors.Control; this.label1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.label1.Location = new System.Drawing.Point(8, 168); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(296, 1); this.label1.TabIndex = 2; // // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.btnCancel.Location = new System.Drawing.Point(216, 176); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(80, 24); this.btnCancel.TabIndex = 13; this.btnCancel.Text = "Cancel"; this.btnCancel.Click += cancel_Click; // // btnOK // this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOK.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.btnOK.Location = new System.Drawing.Point(128, 176); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(80, 24); this.btnOK.TabIndex = 12; this.btnOK.Text = "OK"; this.btnOK.Click += ok_Click; // // contextMenu // this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.ctxHSV_RGB, this.ctxHSV_LAB, this.separator1, this.ctxPrevColor, this.ctxCopy, this.ctxPaste }); // // ctxHSV_RGB // this.ctxHSV_RGB.Checked = true; this.ctxHSV_RGB.Index = 0; this.ctxHSV_RGB.RadioCheck = true; this.ctxHSV_RGB.Text = "HSV - RGB"; this.ctxHSV_RGB.Click += new System.EventHandler(this.ctxOptions_Click); // // ctxHSV_LAB // this.ctxHSV_LAB.Index = 1; this.ctxHSV_LAB.RadioCheck = true; this.ctxHSV_LAB.Text = "HSV - LAB"; this.ctxHSV_LAB.Click += new System.EventHandler(this.ctxOptions_Click); // // separator1 // this.separator1.Index = 2; this.separator1.Text = "-"; // // ctxPrevColor // this.ctxPrevColor.Index = 3; this.ctxPrevColor.Text = "Previous Color"; this.ctxPrevColor.Click += new System.EventHandler(this.ctxOptions_Click); // // ctxCopy // this.ctxCopy.Index = 4; this.ctxCopy.Text = "Copy to Clipboard"; this.ctxCopy.Click += new System.EventHandler(this.ctxOptions_Click); // // ctxCopy // this.ctxPaste.Index = 5; this.ctxPaste.Text = "Paste from Clipboard"; this.ctxPaste.Click += new System.EventHandler(this.ctxOptions_Click); // // rdHSV_H // this.rdHSV_H.Checked = true; this.rdHSV_H.ForeColor = System.Drawing.SystemColors.ControlText; this.rdHSV_H.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.rdHSV_H.Location = new System.Drawing.Point(200, 8); this.rdHSV_H.Name = "rdHSV_H"; this.rdHSV_H.Size = new System.Drawing.Size(32, 20); this.rdHSV_H.TabIndex = 6; this.rdHSV_H.TabStop = true; this.rdHSV_H.Text = "H"; this.rdHSV_H.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdHSV_S // this.rdHSV_S.ForeColor = System.Drawing.SystemColors.ControlText; this.rdHSV_S.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.rdHSV_S.Location = new System.Drawing.Point(200, 32); this.rdHSV_S.Name = "rdHSV_S"; this.rdHSV_S.Size = new System.Drawing.Size(32, 20); this.rdHSV_S.TabIndex = 7; this.rdHSV_S.Text = "S"; this.rdHSV_S.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdHSV_V // this.rdHSV_V.ForeColor = System.Drawing.SystemColors.ControlText; this.rdHSV_V.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.rdHSV_V.Location = new System.Drawing.Point(200, 56); this.rdHSV_V.Name = "rdHSV_V"; this.rdHSV_V.Size = new System.Drawing.Size(32, 20); this.rdHSV_V.TabIndex = 8; this.rdHSV_V.Text = "V"; this.rdHSV_V.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdSecond_1 // this.rdSecond_1.ForeColor = System.Drawing.SystemColors.ControlText; this.rdSecond_1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.rdSecond_1.Location = new System.Drawing.Point(200, 88); this.rdSecond_1.Name = "rdSecond_1"; this.rdSecond_1.Size = new System.Drawing.Size(32, 20); this.rdSecond_1.TabIndex = 9; this.rdSecond_1.Text = "R"; this.rdSecond_1.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdSecond_2 // this.rdSecond_2.ForeColor = System.Drawing.SystemColors.ControlText; this.rdSecond_2.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.rdSecond_2.Location = new System.Drawing.Point(200, 112); this.rdSecond_2.Name = "rdSecond_2"; this.rdSecond_2.Size = new System.Drawing.Size(32, 20); this.rdSecond_2.TabIndex = 10; this.rdSecond_2.Text = "G"; this.rdSecond_2.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdSecond_3 // this.rdSecond_3.ForeColor = System.Drawing.SystemColors.ControlText; this.rdSecond_3.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.rdSecond_3.Location = new System.Drawing.Point(200, 136); this.rdSecond_3.Name = "rdSecond_3"; this.rdSecond_3.Size = new System.Drawing.Size(32, 20); this.rdSecond_3.TabIndex = 11; this.rdSecond_3.Text = "B"; this.rdSecond_3.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // tbHSV_H // this.tbHSV_H.BackColor = System.Drawing.SystemColors.Window; this.tbHSV_H.Location = new System.Drawing.Point(232, 8); this.tbHSV_H.MaxLength = 6; this.tbHSV_H.Name = "tbHSV_H"; this.tbHSV_H.Size = new System.Drawing.Size(48, 20); this.tbHSV_H.TabIndex = 0; this.tbHSV_H.Text = "0"; this.tbHSV_H.Leave += new System.EventHandler(this.tbValue_Leave); this.tbHSV_H.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); // // tbHSV_S // this.tbHSV_S.BackColor = System.Drawing.SystemColors.Window; this.tbHSV_S.Location = new System.Drawing.Point(232, 32); this.tbHSV_S.MaxLength = 6; this.tbHSV_S.Name = "tbHSV_S"; this.tbHSV_S.Size = new System.Drawing.Size(48, 20); this.tbHSV_S.TabIndex = 1; this.tbHSV_S.Text = "0"; this.tbHSV_S.Leave += new System.EventHandler(this.tbValue_Leave); this.tbHSV_S.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); // // tbHSV_V // this.tbHSV_V.BackColor = System.Drawing.SystemColors.Window; this.tbHSV_V.Location = new System.Drawing.Point(232, 56); this.tbHSV_V.MaxLength = 6; this.tbHSV_V.Name = "tbHSV_V"; this.tbHSV_V.Size = new System.Drawing.Size(48, 20); this.tbHSV_V.TabIndex = 2; this.tbHSV_V.Text = "0"; this.tbHSV_V.Leave += new System.EventHandler(this.tbValue_Leave); this.tbHSV_V.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); // // tbSecond_1 // this.tbSecond_1.BackColor = System.Drawing.SystemColors.Window; this.tbSecond_1.Location = new System.Drawing.Point(232, 88); this.tbSecond_1.MaxLength = 6; this.tbSecond_1.Name = "tbSecond_1"; this.tbSecond_1.Size = new System.Drawing.Size(48, 20); this.tbSecond_1.TabIndex = 3; this.tbSecond_1.Text = "0"; this.tbSecond_1.Leave += new System.EventHandler(this.tbValue_Leave); this.tbSecond_1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); // // tbSecond_2 // this.tbSecond_2.BackColor = System.Drawing.SystemColors.Window; this.tbSecond_2.Location = new System.Drawing.Point(232, 112); this.tbSecond_2.MaxLength = 6; this.tbSecond_2.Name = "tbSecond_2"; this.tbSecond_2.Size = new System.Drawing.Size(48, 20); this.tbSecond_2.TabIndex = 4; this.tbSecond_2.Text = "0"; this.tbSecond_2.Leave += new System.EventHandler(this.tbValue_Leave); this.tbSecond_2.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); // // tbSecond_3 // this.tbSecond_3.BackColor = System.Drawing.SystemColors.Window; this.tbSecond_3.Location = new System.Drawing.Point(232, 136); this.tbSecond_3.MaxLength = 6; this.tbSecond_3.Name = "tbSecond_3"; this.tbSecond_3.Size = new System.Drawing.Size(48, 20); this.tbSecond_3.TabIndex = 5; this.tbSecond_3.Text = "0"; this.tbSecond_3.Leave += new System.EventHandler(this.tbValue_Leave); this.tbSecond_3.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); // // lblHSV_H // this.lblHSV_H.ForeColor = System.Drawing.SystemColors.ControlText; this.lblHSV_H.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.lblHSV_H.Location = new System.Drawing.Point(280, 8); this.lblHSV_H.Name = "lblHSV_H"; this.lblHSV_H.Size = new System.Drawing.Size(16, 20); this.lblHSV_H.TabIndex = 7; this.lblHSV_H.Text = "°"; this.lblHSV_H.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblHSV_S // this.lblHSV_S.ForeColor = System.Drawing.SystemColors.ControlText; this.lblHSV_S.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.lblHSV_S.Location = new System.Drawing.Point(280, 32); this.lblHSV_S.Name = "lblHSV_S"; this.lblHSV_S.Size = new System.Drawing.Size(16, 20); this.lblHSV_S.TabIndex = 7; this.lblHSV_S.Text = "%"; this.lblHSV_S.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblHSV_V // this.lblHSV_V.ForeColor = System.Drawing.SystemColors.ControlText; this.lblHSV_V.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.lblHSV_V.Location = new System.Drawing.Point(280, 56); this.lblHSV_V.Name = "lblHSV_V"; this.lblHSV_V.Size = new System.Drawing.Size(16, 20); this.lblHSV_V.TabIndex = 7; this.lblHSV_V.Text = "%"; this.lblHSV_V.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblSecond_1 // this.lblSecond_1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.lblSecond_1.Location = new System.Drawing.Point(280, 88); this.lblSecond_1.Name = "lblSecond_1"; this.lblSecond_1.Size = new System.Drawing.Size(16, 20); this.lblSecond_1.TabIndex = 7; this.lblSecond_1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblSecond_2 // this.lblSecond_2.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.lblSecond_2.Location = new System.Drawing.Point(280, 112); this.lblSecond_2.Name = "lblSecond_2"; this.lblSecond_2.Size = new System.Drawing.Size(16, 20); this.lblSecond_2.TabIndex = 7; this.lblSecond_2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblSecond_3 // this.lblSecond_3.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.lblSecond_3.Location = new System.Drawing.Point(280, 136); this.lblSecond_3.Name = "lblSecond_3"; this.lblSecond_3.Size = new System.Drawing.Size(16, 20); this.lblSecond_3.TabIndex = 7; this.lblSecond_3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // toolTip // this.toolTip.AutomaticDelay = 1000; this.toolTip.AutoPopDelay = 5000; this.toolTip.InitialDelay = 1000; this.toolTip.ReshowDelay = 200; // // lblColorOut // this.lblColorOut.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lblColorOut.Color = System.Drawing.Color.White; this.lblColorOut.ContextMenu = this.contextMenu; this.lblColorOut.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F); this.lblColorOut.Location = new System.Drawing.Point(8, 176); this.lblColorOut.Name = "lblColorOut"; this.lblColorOut.OldColor = System.Drawing.Color.White; this.lblColorOut.Size = new System.Drawing.Size(72, 24); this.lblColorOut.TabIndex = 0; this.toolTip.SetToolTip(this.lblColorOut, "Right Click here for more options.\r\nLeft Click and drag outside to pick a color f" + "rom screen."); this.lblColorOut.ColorChanged += new System.EventHandler(this.lblColorOut_ColorChanged); // // colorSelectionFader1 // this.colorSelectionFader1.Location = new System.Drawing.Point(160, 3); this.colorSelectionFader1.Name = "colorSelectionFader1"; this.colorSelectionFader1.Size = new System.Drawing.Size(24, 158); this.colorSelectionFader1.TabIndex = 1; this.colorSelectionFader1.TabStop = false; this.toolTip.SetToolTip(this.colorSelectionFader1, "Hold down Shift for snap at 10% steps"); // // colorSelectionPlane1 // this.colorSelectionPlane1.Location = new System.Drawing.Point(8, 8); this.colorSelectionPlane1.Name = "colorSelectionPlane1"; this.colorSelectionPlane1.Size = new System.Drawing.Size(148, 148); this.colorSelectionPlane1.TabIndex = 0; this.colorSelectionPlane1.TabStop = false; this.toolTip.SetToolTip(this.colorSelectionPlane1, "Hold Down Shift for snap to grid"); // // ColorPicker // this.AcceptButton = this.btnOK; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(306, 208); this.Controls.Add(this.lblColorOut); this.Controls.Add(this.lblHSV_H); this.Controls.Add(this.tbSecond_3); this.Controls.Add(this.tbSecond_2); this.Controls.Add(this.tbSecond_1); this.Controls.Add(this.tbHSV_V); this.Controls.Add(this.tbHSV_S); this.Controls.Add(this.tbHSV_H); this.Controls.Add(this.rdHSV_H); this.Controls.Add(this.btnCancel); this.Controls.Add(this.label1); this.Controls.Add(this.colorSelectionFader1); this.Controls.Add(this.colorSelectionPlane1); this.Controls.Add(this.btnOK); this.Controls.Add(this.rdHSV_S); this.Controls.Add(this.rdHSV_V); this.Controls.Add(this.rdSecond_1); this.Controls.Add(this.rdSecond_2); this.Controls.Add(this.rdSecond_3); this.Controls.Add(this.lblHSV_S); this.Controls.Add(this.lblHSV_V); this.Controls.Add(this.lblSecond_1); this.Controls.Add(this.lblSecond_2); this.Controls.Add(this.lblSecond_3); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ColorPicker"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Color Picker"; this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Erforderliche Methode für die Designerunterstützung. /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ColorPicker)); this.label1 = new System.Windows.Forms.Label(); this.btnCancel = new System.Windows.Forms.Button(); this.btnOK = new System.Windows.Forms.Button(); this.contextMenu = new System.Windows.Forms.ContextMenu(); this.ctxHSV_RGB = new System.Windows.Forms.MenuItem(); this.ctxHSV_LAB = new System.Windows.Forms.MenuItem(); this.separator1 = new System.Windows.Forms.MenuItem(); this.ctxPrevColor = new System.Windows.Forms.MenuItem(); this.ctxCopy = new System.Windows.Forms.MenuItem(); this.rdHSV_H = new System.Windows.Forms.RadioButton(); this.rdHSV_S = new System.Windows.Forms.RadioButton(); this.rdHSV_V = new System.Windows.Forms.RadioButton(); this.rdSecond_1 = new System.Windows.Forms.RadioButton(); this.rdSecond_2 = new System.Windows.Forms.RadioButton(); this.rdSecond_3 = new System.Windows.Forms.RadioButton(); this.tbHSV_H = new System.Windows.Forms.TextBox(); this.tbHSV_S = new System.Windows.Forms.TextBox(); this.tbHSV_V = new System.Windows.Forms.TextBox(); this.tbSecond_1 = new System.Windows.Forms.TextBox(); this.tbSecond_2 = new System.Windows.Forms.TextBox(); this.tbSecond_3 = new System.Windows.Forms.TextBox(); this.lblHSV_H = new System.Windows.Forms.Label(); this.lblHSV_S = new System.Windows.Forms.Label(); this.lblHSV_V = new System.Windows.Forms.Label(); this.lblSecond_1 = new System.Windows.Forms.Label(); this.lblSecond_2 = new System.Windows.Forms.Label(); this.lblSecond_3 = new System.Windows.Forms.Label(); this.toolTip = new System.Windows.Forms.ToolTip(this.components); this.lblColorOut = new DrawingEx.ColorManagement.ColorLabel(); this.colorSelectionFader1 = new DrawingEx.ColorManagement.ColorModels.Selection.ColorSelectionFader(); this.colorSelectionPlane1 = new DrawingEx.ColorManagement.ColorModels.Selection.ColorSelectionPlane(); this.SuspendLayout(); // // label1 // resources.ApplyResources(this.label1, "label1"); this.label1.BackColor = System.Drawing.Color.Silver; this.label1.Name = "label1"; this.toolTip.SetToolTip(this.label1, resources.GetString("label1.ToolTip")); // // btnCancel // resources.ApplyResources(this.btnCancel, "btnCancel"); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Name = "btnCancel"; this.toolTip.SetToolTip(this.btnCancel, resources.GetString("btnCancel.ToolTip")); // // btnOK // resources.ApplyResources(this.btnOK, "btnOK"); this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOK.Name = "btnOK"; this.toolTip.SetToolTip(this.btnOK, resources.GetString("btnOK.ToolTip")); // // contextMenu // this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.ctxHSV_RGB, this.ctxHSV_LAB, this.separator1, this.ctxPrevColor, this.ctxCopy }); resources.ApplyResources(this.contextMenu, "contextMenu"); // // ctxHSV_RGB // this.ctxHSV_RGB.Checked = true; resources.ApplyResources(this.ctxHSV_RGB, "ctxHSV_RGB"); this.ctxHSV_RGB.Index = 0; this.ctxHSV_RGB.RadioCheck = true; this.ctxHSV_RGB.Click += new System.EventHandler(this.ctxOptions_Click); // // ctxHSV_LAB // resources.ApplyResources(this.ctxHSV_LAB, "ctxHSV_LAB"); this.ctxHSV_LAB.Index = 1; this.ctxHSV_LAB.RadioCheck = true; this.ctxHSV_LAB.Click += new System.EventHandler(this.ctxOptions_Click); // // separator1 // resources.ApplyResources(this.separator1, "separator1"); this.separator1.Index = 2; // // ctxPrevColor // resources.ApplyResources(this.ctxPrevColor, "ctxPrevColor"); this.ctxPrevColor.Index = 3; this.ctxPrevColor.Click += new System.EventHandler(this.ctxOptions_Click); // // ctxCopy // resources.ApplyResources(this.ctxCopy, "ctxCopy"); this.ctxCopy.Index = 4; this.ctxCopy.Click += new System.EventHandler(this.ctxOptions_Click); // // rdHSV_H // resources.ApplyResources(this.rdHSV_H, "rdHSV_H"); this.rdHSV_H.Checked = true; this.rdHSV_H.Name = "rdHSV_H"; this.rdHSV_H.TabStop = true; this.toolTip.SetToolTip(this.rdHSV_H, resources.GetString("rdHSV_H.ToolTip")); this.rdHSV_H.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdHSV_S // resources.ApplyResources(this.rdHSV_S, "rdHSV_S"); this.rdHSV_S.Name = "rdHSV_S"; this.toolTip.SetToolTip(this.rdHSV_S, resources.GetString("rdHSV_S.ToolTip")); this.rdHSV_S.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdHSV_V // resources.ApplyResources(this.rdHSV_V, "rdHSV_V"); this.rdHSV_V.Name = "rdHSV_V"; this.toolTip.SetToolTip(this.rdHSV_V, resources.GetString("rdHSV_V.ToolTip")); this.rdHSV_V.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdSecond_1 // resources.ApplyResources(this.rdSecond_1, "rdSecond_1"); this.rdSecond_1.Name = "rdSecond_1"; this.toolTip.SetToolTip(this.rdSecond_1, resources.GetString("rdSecond_1.ToolTip")); this.rdSecond_1.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdSecond_2 // resources.ApplyResources(this.rdSecond_2, "rdSecond_2"); this.rdSecond_2.Name = "rdSecond_2"; this.toolTip.SetToolTip(this.rdSecond_2, resources.GetString("rdSecond_2.ToolTip")); this.rdSecond_2.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdSecond_3 // resources.ApplyResources(this.rdSecond_3, "rdSecond_3"); this.rdSecond_3.Name = "rdSecond_3"; this.toolTip.SetToolTip(this.rdSecond_3, resources.GetString("rdSecond_3.ToolTip")); this.rdSecond_3.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // tbHSV_H // resources.ApplyResources(this.tbHSV_H, "tbHSV_H"); this.tbHSV_H.Name = "tbHSV_H"; this.toolTip.SetToolTip(this.tbHSV_H, resources.GetString("tbHSV_H.ToolTip")); this.tbHSV_H.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); this.tbHSV_H.Leave += new System.EventHandler(this.tbValue_Leave); // // tbHSV_S // resources.ApplyResources(this.tbHSV_S, "tbHSV_S"); this.tbHSV_S.Name = "tbHSV_S"; this.toolTip.SetToolTip(this.tbHSV_S, resources.GetString("tbHSV_S.ToolTip")); this.tbHSV_S.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); this.tbHSV_S.Leave += new System.EventHandler(this.tbValue_Leave); // // tbHSV_V // resources.ApplyResources(this.tbHSV_V, "tbHSV_V"); this.tbHSV_V.Name = "tbHSV_V"; this.toolTip.SetToolTip(this.tbHSV_V, resources.GetString("tbHSV_V.ToolTip")); this.tbHSV_V.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); this.tbHSV_V.Leave += new System.EventHandler(this.tbValue_Leave); // // tbSecond_1 // resources.ApplyResources(this.tbSecond_1, "tbSecond_1"); this.tbSecond_1.Name = "tbSecond_1"; this.toolTip.SetToolTip(this.tbSecond_1, resources.GetString("tbSecond_1.ToolTip")); this.tbSecond_1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); this.tbSecond_1.Leave += new System.EventHandler(this.tbValue_Leave); // // tbSecond_2 // resources.ApplyResources(this.tbSecond_2, "tbSecond_2"); this.tbSecond_2.Name = "tbSecond_2"; this.toolTip.SetToolTip(this.tbSecond_2, resources.GetString("tbSecond_2.ToolTip")); this.tbSecond_2.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); this.tbSecond_2.Leave += new System.EventHandler(this.tbValue_Leave); // // tbSecond_3 // resources.ApplyResources(this.tbSecond_3, "tbSecond_3"); this.tbSecond_3.Name = "tbSecond_3"; this.toolTip.SetToolTip(this.tbSecond_3, resources.GetString("tbSecond_3.ToolTip")); this.tbSecond_3.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); this.tbSecond_3.Leave += new System.EventHandler(this.tbValue_Leave); // // lblHSV_H // resources.ApplyResources(this.lblHSV_H, "lblHSV_H"); this.lblHSV_H.Name = "lblHSV_H"; this.toolTip.SetToolTip(this.lblHSV_H, resources.GetString("lblHSV_H.ToolTip")); // // lblHSV_S // resources.ApplyResources(this.lblHSV_S, "lblHSV_S"); this.lblHSV_S.Name = "lblHSV_S"; this.toolTip.SetToolTip(this.lblHSV_S, resources.GetString("lblHSV_S.ToolTip")); // // lblHSV_V // resources.ApplyResources(this.lblHSV_V, "lblHSV_V"); this.lblHSV_V.Name = "lblHSV_V"; this.toolTip.SetToolTip(this.lblHSV_V, resources.GetString("lblHSV_V.ToolTip")); // // lblSecond_1 // resources.ApplyResources(this.lblSecond_1, "lblSecond_1"); this.lblSecond_1.Name = "lblSecond_1"; this.toolTip.SetToolTip(this.lblSecond_1, resources.GetString("lblSecond_1.ToolTip")); // // lblSecond_2 // resources.ApplyResources(this.lblSecond_2, "lblSecond_2"); this.lblSecond_2.Name = "lblSecond_2"; this.toolTip.SetToolTip(this.lblSecond_2, resources.GetString("lblSecond_2.ToolTip")); // // lblSecond_3 // resources.ApplyResources(this.lblSecond_3, "lblSecond_3"); this.lblSecond_3.Name = "lblSecond_3"; this.toolTip.SetToolTip(this.lblSecond_3, resources.GetString("lblSecond_3.ToolTip")); // // toolTip // this.toolTip.AutomaticDelay = 1000; this.toolTip.AutoPopDelay = 5000; this.toolTip.InitialDelay = 1000; this.toolTip.ReshowDelay = 200; // // lblColorOut // resources.ApplyResources(this.lblColorOut, "lblColorOut"); this.lblColorOut.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.lblColorOut.ContextMenu = this.contextMenu; this.lblColorOut.Name = "lblColorOut"; this.lblColorOut.OldColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.toolTip.SetToolTip(this.lblColorOut, resources.GetString("lblColorOut.ToolTip")); this.lblColorOut.ColorChanged += new System.EventHandler(this.lblColorOut_ColorChanged); // // colorSelectionFader1 // resources.ApplyResources(this.colorSelectionFader1, "colorSelectionFader1"); this.colorSelectionFader1.Name = "colorSelectionFader1"; this.colorSelectionFader1.TabStop = false; this.toolTip.SetToolTip(this.colorSelectionFader1, resources.GetString("colorSelectionFader1.ToolTip")); // // colorSelectionPlane1 // resources.ApplyResources(this.colorSelectionPlane1, "colorSelectionPlane1"); this.colorSelectionPlane1.Name = "colorSelectionPlane1"; this.colorSelectionPlane1.TabStop = false; this.toolTip.SetToolTip(this.colorSelectionPlane1, resources.GetString("colorSelectionPlane1.ToolTip")); // // ColorPicker // this.AcceptButton = this.btnOK; resources.ApplyResources(this, "$this"); this.CancelButton = this.btnCancel; this.Controls.Add(this.lblColorOut); this.Controls.Add(this.lblHSV_H); this.Controls.Add(this.tbSecond_3); this.Controls.Add(this.tbSecond_2); this.Controls.Add(this.tbSecond_1); this.Controls.Add(this.tbHSV_V); this.Controls.Add(this.tbHSV_S); this.Controls.Add(this.tbHSV_H); this.Controls.Add(this.rdHSV_H); this.Controls.Add(this.btnCancel); this.Controls.Add(this.label1); this.Controls.Add(this.colorSelectionFader1); this.Controls.Add(this.colorSelectionPlane1); this.Controls.Add(this.btnOK); this.Controls.Add(this.rdHSV_S); this.Controls.Add(this.rdHSV_V); this.Controls.Add(this.rdSecond_1); this.Controls.Add(this.rdSecond_2); this.Controls.Add(this.rdSecond_3); this.Controls.Add(this.lblHSV_S); this.Controls.Add(this.lblHSV_V); this.Controls.Add(this.lblSecond_1); this.Controls.Add(this.lblSecond_2); this.Controls.Add(this.lblSecond_3); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ColorPicker"; this.toolTip.SetToolTip(this, resources.GetString("$this.ToolTip")); this.ResumeLayout(false); this.PerformLayout(); }
protected override void OnUpdateFaderPosition(ColorSelectionFader fader) { fader.Position = _color.L / 100.0; }
protected override void OnUpdateFaderPosition(ColorSelectionFader fader) { fader.Position = (double)(_color.R) / 255.0; }
protected override void OnUpdateFaderPosition(ColorSelectionFader fader) { fader.Position = (_color.b + 128.0) / 255.0; }