示例#1
0
        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            string color1 = ColorParser.GetColorString(panel1.BackColor);
            string color2 = customColorControl1.GetConfigString();

            frmSettings.Petronode_ColorPicker_Configuration = color1 + color2;
            frmSettings.Save();
        }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     Clipboard.SetText(ColorParser.GetColorString(panel1.BackColor));
     ReturnValue = ((int)numericUpDown2.Value << 16) + ((int)numericUpDown3.Value << 8) + ((int)numericUpDown4.Value);
     if (ReturnOnClick)
     {
         Application.Exit();
     }
 }