Exemple #1
0
        static void Prog2()
        {
            LC4Document doc = parser.Load(@"..\..\sokolov21.LC4");

            doc.Description      = "manually generated";
            doc.Cuttings[0].Name = "00001";
            parser.Save(@"..\..\SOKOLOV21.LC4", FileMode.Create, doc);
            doc.Serialize(@"..\..\SOKOLOV21.xml");
        }
Exemple #2
0
        static void Prog1()
        {
            LC4Document doc = parser.Load(@"..\..\sokolov2.LC4");

            parser.Save(@"..\..\1loadsave.lc4", FileMode.Create, doc);             // pass
            doc.Serialize(@"..\..\1loadsave.xml");

            doc.Cuttings.RemoveRange(1, doc.Cuttings.Count - 1);
            parser.Save(@"..\..\2singleCutting.lc4", FileMode.Create, doc);
            doc.Serialize(@"..\..\2singleCutting.xml");

            doc.Sheets.RemoveRange(1, doc.Sheets.Count - 1);
            parser.Save(@"..\..\3singleSheet.lc4", FileMode.Create, doc);
            doc.Serialize(@"..\..\3singleSheet.xml");

            doc.Cuttings[0].Variables.Clear();
            parser.Save(@"..\..\4noVariables.lc4", FileMode.Create, doc);
            doc.Serialize(@"..\..\4noVariables.xml");

            doc.Description = "Other name";
            parser.Save(@"..\..\5otherGen.lc4", FileMode.Create, doc);
            doc.Serialize(@"..\..\5otherGen.xml");
        }