Пример #1
0
        public void ReadXml(System.Xml.XmlReader r)
        {
            string s = r.GetAttribute("Color");

            Color.FromString(s);
            r.Read();
        }
Пример #2
0
        public void ReadXml(System.Xml.XmlReader r)
        {
            string s  = r.GetAttribute("Color");
            string lw = r.GetAttribute("LineWidth");

            Color.FromString(s);
            LineWidth = float.Parse(lw, NumberStyles.Any);
            r.Read();
        }