Forex_Strategy_Builder.LayoutColors.ParseColor C# (CSharp) Method

ParseColor() static private method

Parses the color from the given xml node
static private ParseColor ( string node ) : Color
node string
return Color
        static Color ParseColor(string node)
        {
            int r = int.Parse(LayoutColors.xmlColors.SelectNodes("color/" + node).Item(0).Attributes.Item(0).InnerText);
            int g = int.Parse(LayoutColors.xmlColors.SelectNodes("color/" + node).Item(0).Attributes.Item(1).InnerText);
            int b = int.Parse(LayoutColors.xmlColors.SelectNodes("color/" + node).Item(0).Attributes.Item(2).InnerText);

            return Color.FromArgb(r, g, b);
        }