示例#1
0
        protected static HexC.ColorsEnum ColorEnumFromString(string color)
        {
            HexC.ColorsEnum col = HexC.ColorsEnum.White;
            switch (color)
            {
            case "black": col = HexC.ColorsEnum.Black; break;

            case "tan": col = HexC.ColorsEnum.Tan; break;
            }
            return(col);
        }
示例#2
0
 public static void ReplaceHues(string id, string color, Dictionary <string, string> hues)
 {
     HexC.ColorsEnum col = ColorEnumFromString(color);
     m_allHues[id][col] = hues;
 }