Пример #1
0
        public static BmlBlock Parse(string xmlPath)
        {
            XmlDocument xmlDoc = new XmlDocument();
            xmlDoc.Load(xmlPath);

            var bml = new BmlBlock(xmlDoc.ChildNodes[0]);

            // BmlBehaviour
            bml.BehaviourList = GetBehaviour(xmlDoc.ChildNodes[0]);

            // <required> Block
            foreach (XmlNode node in xmlDoc.ChildNodes[0].ChildNodes)
            {
                if (node.Name == "required")
                {
                    bml.Required.AddRange(GetBehaviour(node));
                }
            }

            return bml;
        }
Пример #2
0
 public BmlScheduler(BmlBlock bmlBlock)
 {
     _bmlBlock = bmlBlock;
 }