/// <summary> /// Save xml (only paper) /// </summary> public void SaveXMLPaper(string output) { Type1Xml t1 = new Type1Xml(); List <IFigure> _tempbox = new List <IFigure>(boxoffigure.Count); foreach (var i in boxoffigure) { if (i is IPaper) { _tempbox.Add(i); } } t1.Write(output, _tempbox); }
/// <summary> /// load xml (streamreader) /// </summary> public void LoadXML(string input) { Type1Xml t1 = new Type1Xml(); boxoffigure = t1.Read(input); }
/// <summary> /// Save xml (streamwriter) /// </summary> public void SaveXMLAll(string output) { Type1Xml t1 = new Type1Xml(); t1.Write(output, boxoffigure); }