예제 #1
0
 public Color GetColor(ColorSettingIndex i)
 {
     try
     {
         return(ColorSettingValue[(int)i]);
     }
     catch { return(Color.Transparent); }
 }
예제 #2
0
        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 { }
        }