Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (color.Color == color.Color)
            {
                color.Reset();
            }

            if (color.ShowDialog() == DialogResult.OK)
            {
                Properties.Settings.Default["MyColor"] = color.Color;
                Properties.Settings.Default.Save();
            }

            this.BackColor = Properties.Settings.Default.MyColor;
        }