private void AddElementColors(IElement element, string line) { string[] colors = line.Split(' '); foreach (string colorRef in colors) { element.AddColor(!colorRef.StartsWith("#") ? Color.FromName(colorRef) : ColorTranslator.FromHtml(colorRef)); } }
private void AddElementColors(IElement element, string line) { string[] colors = line.Split(' '); foreach (string colorRef in colors) { element.AddColor(!colorRef.StartsWith("#") ? Color.FromName(colorRef) : ColorTranslator.FromHtml(colorRef)); } }