private static bool ParseColor(string colorString, out ColorBgra color) { bool returnVal; try { color = ColorBgra.ParseHexString(colorString); returnVal = true; } catch (Exception ex) { Tracing.Ping("Exception while parsing color string '" + colorString + "' :" + ex.ToString()); color = DefaultColor; returnVal = false; } return(returnVal); }