public bool LoadFromXml(XmlTextReader reader) { ErrH.Log("DrawArea", "LoadFromXML", "", ErrH._LogPriority.Info); _graphicsList.Clear(); var svg = new SvgDoc(); if (!svg.LoadFromFile(reader)) { return(false); } SvgRoot root = svg.GetSvgRoot(); if (root == null) { return(false); } try { SizePicture = new SizeF(DrawObject.ParseSize(root.Width, DrawObject.Dpi.X), DrawObject.ParseSize(root.Height, DrawObject.Dpi.Y)); } catch { } _mOriginalSize = SizePicture; SvgElement ele = root.getChild(); _mScale = new SizeF(1, 1); if (ele != null) { _graphicsList.AddFromSvg(ele); } Description = _graphicsList.Description; return(true); }