Пример #1
0
 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
     {
     }
 }
Пример #2
0
 private void txtDecimal_TextChanged(object sender, EventArgs e)
 {
     try
     {
         if (!controlChangingColor)
         {
             colorPicker.ChangeColor(ColorHelpers.DecimalToColor(Convert.ToInt32(txtDecimal.Text)), ColorType.Decimal);
         }
     }
     catch
     {
     }
 }