/// <summary> /// Design time support to indicate whether the CustomColors property should be serialized. /// </summary> public bool ShouldSerializeCustomColors() { return(ColorPanel.ShouldSerializeCustomColors(customColors)); }
/// <summary> /// Design time support to reset the CustomColors property to it's default value. /// </summary> public void ResetCustomColors() { CustomColors = ColorPanel.DefaultCustomColors(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ColorPanelUserControl)); this.colorPanel = new GuruComponents.Netrix.UserInterface.ColorPicker.ColorPanel(); this.radioButtonNo = new System.Windows.Forms.RadioButton(); this.radioButtonCont = new System.Windows.Forms.RadioButton(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.radioButtonBrightness = new System.Windows.Forms.RadioButton(); this.radioButtonName = new System.Windows.Forms.RadioButton(); this.radioButtonDistance = new System.Windows.Forms.RadioButton(); this.radioButtonSaturation = new System.Windows.Forms.RadioButton(); this.buttonWeb = new System.Windows.Forms.Button(); this.buttonCustom = new System.Windows.Forms.Button(); this.buttonSystem = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.buttonNoColor = new System.Windows.Forms.Button(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.groupBox2.SuspendLayout(); this.SuspendLayout(); // // colorPanel // this.colorPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.colorPanel.BackColor = System.Drawing.SystemColors.ControlDark; this.colorPanel.ColorWellSize = new System.Drawing.Size(12, 12); this.colorPanel.Location = new System.Drawing.Point(0, 0); this.colorPanel.Name = "colorPanel"; this.colorPanel.Size = new System.Drawing.Size(220, 148); this.colorPanel.TabIndex = 13; this.colorPanel.ColorChanged += new GuruComponents.Netrix.UserInterface.ColorPicker.ColorChangedEventHandler(this.colorPanel_ColorChanged); // // radioButtonNo // this.radioButtonNo.Checked = true; this.radioButtonNo.FlatStyle = System.Windows.Forms.FlatStyle.System; this.radioButtonNo.Location = new System.Drawing.Point(8, 18); this.radioButtonNo.Name = "radioButtonNo"; this.radioButtonNo.Size = new System.Drawing.Size(111, 16); this.radioButtonNo.TabIndex = 4; this.radioButtonNo.TabStop = true; this.radioButtonNo.Tag = "No"; this.radioButtonNo.Text = "Standard"; this.radioButtonNo.CheckedChanged += new System.EventHandler(this.radioButtonNo_CheckedChanged); // // radioButtonCont // this.radioButtonCont.FlatStyle = System.Windows.Forms.FlatStyle.System; this.radioButtonCont.Location = new System.Drawing.Point(8, 34); this.radioButtonCont.Name = "radioButtonCont"; this.radioButtonCont.Size = new System.Drawing.Size(111, 16); this.radioButtonCont.TabIndex = 5; this.radioButtonCont.Tag = "continues"; this.radioButtonCont.Text = "Continued"; this.radioButtonCont.CheckedChanged += new System.EventHandler(this.radioButtonNo_CheckedChanged); // // groupBox2 // this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox2.Controls.Add(this.radioButtonBrightness); this.groupBox2.Controls.Add(this.radioButtonName); this.groupBox2.Controls.Add(this.radioButtonDistance); this.groupBox2.Controls.Add(this.radioButtonSaturation); this.groupBox2.Controls.Add(this.radioButtonCont); this.groupBox2.Controls.Add(this.radioButtonNo); this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System; this.groupBox2.Location = new System.Drawing.Point(224, 28); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(127, 121); this.groupBox2.TabIndex = 7; this.groupBox2.TabStop = false; this.groupBox2.Text = "Sort Options"; // // radioButtonBrightness // this.radioButtonBrightness.FlatStyle = System.Windows.Forms.FlatStyle.System; this.radioButtonBrightness.Location = new System.Drawing.Point(8, 98); this.radioButtonBrightness.Name = "radioButtonBrightness"; this.radioButtonBrightness.Size = new System.Drawing.Size(111, 16); this.radioButtonBrightness.TabIndex = 9; this.radioButtonBrightness.Tag = "Brightness"; this.radioButtonBrightness.Text = "Brightness"; this.radioButtonBrightness.CheckedChanged += new System.EventHandler(this.radioButtonNo_CheckedChanged); // // radioButtonName // this.radioButtonName.FlatStyle = System.Windows.Forms.FlatStyle.System; this.radioButtonName.Location = new System.Drawing.Point(8, 82); this.radioButtonName.Name = "radioButtonName"; this.radioButtonName.Size = new System.Drawing.Size(111, 16); this.radioButtonName.TabIndex = 8; this.radioButtonName.Tag = "Name"; this.radioButtonName.Text = "Name"; this.radioButtonName.CheckedChanged += new System.EventHandler(this.radioButtonNo_CheckedChanged); // // radioButtonDistance // this.radioButtonDistance.FlatStyle = System.Windows.Forms.FlatStyle.System; this.radioButtonDistance.Location = new System.Drawing.Point(8, 66); this.radioButtonDistance.Name = "radioButtonDistance"; this.radioButtonDistance.Size = new System.Drawing.Size(111, 16); this.radioButtonDistance.TabIndex = 7; this.radioButtonDistance.Tag = "Distance"; this.radioButtonDistance.Text = "Distance"; this.radioButtonDistance.CheckedChanged += new System.EventHandler(this.radioButtonNo_CheckedChanged); // // radioButtonSaturation // this.radioButtonSaturation.FlatStyle = System.Windows.Forms.FlatStyle.System; this.radioButtonSaturation.Location = new System.Drawing.Point(8, 50); this.radioButtonSaturation.Name = "radioButtonSaturation"; this.radioButtonSaturation.Size = new System.Drawing.Size(111, 16); this.radioButtonSaturation.TabIndex = 6; this.radioButtonSaturation.Tag = "Saturation"; this.radioButtonSaturation.Text = "Saturation"; this.radioButtonSaturation.CheckedChanged += new System.EventHandler(this.radioButtonNo_CheckedChanged); // // buttonWeb // this.buttonWeb.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonWeb.BackColor = System.Drawing.SystemColors.ControlDark; this.buttonWeb.FlatStyle = System.Windows.Forms.FlatStyle.System; this.buttonWeb.Location = new System.Drawing.Point(1, 146); this.buttonWeb.Name = "buttonWeb"; this.buttonWeb.Size = new System.Drawing.Size(72, 22); this.buttonWeb.TabIndex = 8; this.buttonWeb.Tag = "0"; this.buttonWeb.Text = "Web"; this.buttonWeb.Click += new System.EventHandler(this.button_Click); // // buttonCustom // this.buttonCustom.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonCustom.BackColor = System.Drawing.SystemColors.ControlDark; this.buttonCustom.FlatStyle = System.Windows.Forms.FlatStyle.System; this.buttonCustom.Location = new System.Drawing.Point(74, 146); this.buttonCustom.Name = "buttonCustom"; this.buttonCustom.Size = new System.Drawing.Size(72, 22); this.buttonCustom.TabIndex = 9; this.buttonCustom.Tag = "1"; this.buttonCustom.Text = "Custom"; this.buttonCustom.Click += new System.EventHandler(this.button_Click); // // buttonSystem // this.buttonSystem.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonSystem.BackColor = System.Drawing.SystemColors.ControlDark; this.buttonSystem.FlatStyle = System.Windows.Forms.FlatStyle.System; this.buttonSystem.Location = new System.Drawing.Point(149, 146); this.buttonSystem.Name = "buttonSystem"; this.buttonSystem.Size = new System.Drawing.Size(72, 22); this.buttonSystem.TabIndex = 10; this.buttonSystem.Tag = "2"; this.buttonSystem.Text = "System"; this.buttonSystem.Click += new System.EventHandler(this.button_Click); // // label1 // this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label1.BackColor = System.Drawing.SystemColors.Info; this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System; this.label1.ForeColor = System.Drawing.SystemColors.InfoText; this.label1.Location = new System.Drawing.Point(224, 151); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(127, 13); this.label1.TabIndex = 11; this.label1.Text = "Hit ESC to cancel"; // // buttonNoColor // this.buttonNoColor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.buttonNoColor.FlatStyle = System.Windows.Forms.FlatStyle.System; this.buttonNoColor.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.buttonNoColor.Location = new System.Drawing.Point(224, 0); this.buttonNoColor.Name = "buttonNoColor"; this.buttonNoColor.Size = new System.Drawing.Size(128, 23); this.buttonNoColor.TabIndex = 12; this.buttonNoColor.Text = "No Color"; this.buttonNoColor.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.buttonNoColor.Click += new System.EventHandler(this.buttonNoColor_Click); // // pictureBox1 // this.pictureBox1.Location = new System.Drawing.Point(313, 3); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(24, 15); this.pictureBox1.TabIndex = 14; this.pictureBox1.TabStop = false; // // ColorPanelUserControl // this.Controls.Add(this.groupBox2); this.Controls.Add(this.pictureBox1); this.Controls.Add(this.colorPanel); this.Controls.Add(this.buttonNoColor); this.Controls.Add(this.label1); this.Controls.Add(this.buttonSystem); this.Controls.Add(this.buttonCustom); this.Controls.Add(this.buttonWeb); this.Name = "ColorPanelUserControl"; this.Size = new System.Drawing.Size(357, 170); this.Tag = "0"; this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ColorPanelForm_KeyDown); this.groupBox2.ResumeLayout(false); this.ResumeLayout(false); }