public Color GetColor(ColorSettingIndex i) { try { return(ColorSettingValue[(int)i]); } catch { return(Color.Transparent); } }
public void SetColor(ColorSettingIndex i, Color color) { try { ColorSettingValue[(int)i] = color; if (color.IsNamedColor) { Config.Local.SetParameter(ColorSettingName[(int)i], color.Name); } else { Config.Local.SetParameter(ColorSettingName[(int)i], color.R.ToString() + "," + color.G.ToString() + "," + color.B.ToString()); } } catch { } }