Beispiel #1
0
    private void InitData()
    {
        //if (null != mRuleList)
        //	return;

        mRuleList = new List <RuleObject>();
        XmlData root = XmlTool.GetXmlData(ERuleParam4Editor.RuleConfigUrlForEditor);

        if (null == root)
        {
            return;
        }

        foreach (var data in root.Childs)
        {
            RuleObject ruleObject = new RuleObject();
            if (!ruleObject.XmlDeserilize(data))
            {
                continue;
            }

            mRuleList.Add(ruleObject);
        }
    }