Beispiel #1
0
        private void parseColors(String[] colorOptions)
        {
            if (colorOptions == null)
            {
                return;
            }

            foreach (String colorOption in colorOptions)
            {
                String[] tokens = colorOption.Split('#');
                if (tokens.Length != 2)
                {
                    throw new ArgumentException("Invalid COLOR specification: " + colorOption);
                }

                String colorName = tokens[0];
                Color  Color     = Util.parseColor(tokens[1]);
                gdef.setColor(colorName, Color);
            }
        }