Exemplo n.º 1
0
        public static void Build(XElement vu, string Name, Lit[] LitArray)
        {
            XElement grpseqs = vu.Element("GrpSeqs");

            if (grpseqs != null)
            {
                foreach (XElement xgrpseq in grpseqs.Elements("GrpSeq"))
                {
                    GrpSeq grpseq = new GrpSeq(((string)xgrpseq.Attribute("nm")).Replace("$", Name));
                    var    x      = from l in xgrpseq.Elements("Group") select new List <Grp> {
                        Grp.GrpDict[((string)l.Attribute("grp")).Replace("$", Name)]
                    };
                    grpseq.GrpList.AddRange(x);
                }
            }
        }
Exemplo n.º 2
0
        public static void Load(XElement root)
        {
            XElement xpN = root.Element("GrpSeqs");

            foreach (XElement cur in xpN.Elements("GrpSeq"))
            {
                GrpSeq grpseq = new GrpSeq((string)cur.Attribute(@"nm"));

                foreach (XElement stp in cur.Elements("step"))
                {
                    List <Grp> stplst = new List <Grp>();
                    grpseq.GrpList.Add(stplst);

                    foreach (XElement grp in stp.Elements("grp"))
                    {
                        stplst.Add(Pgm.ParseGrp(null, grp));
                    }
                }
            }
        }