/// <summary> /// Gets the color from a XML node. /// </summary> /// <param name="xml">The XML Editor instance.</param> /// <param name="node">The node.</param> /// <param name="key">The key.</param> /// <returns></returns> protected Color GetColorFromXml(IO.XmlEditor xml, string node, string key) { return Color.FromArgb(xml.TryGetAttributeValue(key, node, "A").ToInt(), xml.TryGetAttributeValue(key, node, "R").ToInt(), xml.TryGetAttributeValue(key, node, "G").ToInt(), xml.TryGetAttributeValue(key, node, "B").ToInt()); }