Exemplo n.º 1
0
        private void SubmitColorText()
        {
            Color?newColor = ColorUtilities.ConvertDecimalToColor(textBoxColorSelector.Text);

            if (newColor.HasValue)
            {
                SelectedColor = newColor.Value;
            }
            else
            {
                textBoxColorSelector.Text = ColorUtilities.ConvertColorToDecimal(panelColorSelector.BackColor);
            }
        }