コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <summary>
        /// load xml (streamreader)
        /// </summary>
        public void LoadXML(string input)
        {
            Type1Xml t1 = new Type1Xml();

            boxoffigure = t1.Read(input);
        }
コード例 #3
0
        /// <summary>
        /// Save xml (streamwriter)
        /// </summary>
        public void SaveXMLAll(string output)
        {
            Type1Xml t1 = new Type1Xml();

            t1.Write(output, boxoffigure);
        }