public ColorChooser() { InitializeComponent(); color = new OgmoColor(255, 255, 255); hexTextBox.Text = color.ToString(); colorButton.BackColor = color; }
public ColorChooser() { InitializeComponent(); color = new OgmoColor(255, 255, 255); hexTextBox.Text = color.ToString(); colorButton.BackColor = color; }
static public void Parse(ref OgmoColor to, TextBox box) { try { to = new OgmoColor(box.Text); } catch { box.Text = to.ToString(); } }
public static void Parse(ref OgmoColor to, TextBox box) { try { to = new OgmoColor(box.Text); } catch { box.Text = to.ToString(); } }