/// <summary> /// Save xml only paper (xmlwriter) /// </summary> public void SaveXML2Paper(string output) { Type2Xml wx = new Type2Xml(); List <IFigure> _tempbox = new List <IFigure>(boxoffigure.Count); foreach (var i in boxoffigure) { if (i is IPaper) { _tempbox.Add(i); } } wx.Write(output, _tempbox); }
/// <summary> /// load xml (xmlreader) /// </summary> public void LoadXML2(string input) { Type2Xml t1 = new Type2Xml(); boxoffigure = t1.Read(input); }
/// <summary> /// Save xml (xmlwriter) /// </summary> public void SaveXML2All(string output) { Type2Xml wx = new Type2Xml(); wx.Write(output, boxoffigure); }