Пример #1
0
        public override void FromXml(string source)
        {
            // Loads targetdeck and children from given raw string
            XqlParser parser = new XqlParser();

            parser.LoadData(source);
            List <Hashtable> results = parser.Query("SELECT _outerXml FROM TARGET");

            foreach (Hashtable ht in results)
            {
                TargetElement newTarget = new TargetElement();
                newTarget.FromXml(ht["_outerXml"].ToString());
                Targets.Add(newTarget);
            }
        }