private void SubmitColorText() { Color?newColor = ColorUtilities.ConvertDecimalToColor(textBoxColorSelector.Text); if (newColor.HasValue) { SelectedColor = newColor.Value; } else { textBoxColorSelector.Text = ColorUtilities.ConvertColorToDecimal(panelColorSelector.BackColor); } }