private void txtDecimal_TextChanged(object sender, EventArgs e) { try { if (!controlChangingColor && int.TryParse(txtDecimal.Text, out int dec)) { colorPicker.ChangeColor(ColorHelpers.DecimalToColor(dec), ColorType.Decimal); } } catch { } }
private void txtDecimal_TextChanged(object sender, EventArgs e) { try { if (!controlChangingColor) { colorPicker.ChangeColor(ColorHelpers.DecimalToColor(Convert.ToInt32(txtDecimal.Text)), ColorType.Decimal); } } catch { } }