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); }
public static void ReplaceHues(string id, string color, Dictionary <string, string> hues) { HexC.ColorsEnum col = ColorEnumFromString(color); m_allHues[id][col] = hues; }