Пример #1
0
        public static ColorRGB ParseWebColor(string webcolor)
        {
            var c = ColorRGB.TryParseWebColor(webcolor);

            if (!c.HasValue)
            {
                string s = string.Format("Failed to parse color string \"{0}\"", webcolor);
                throw new AutomationException(s);
            }

            return(c.Value);
        }