예제 #1
0
 protected override bool SetXmlData(XmlNode node)
 {
     if (node.Name.Equals("ActionList"))
     {
         foreach (XmlNode listNode in node.ChildNodes)
         {
             if (listNode.Name.Equals("AlarmList"))
             {
                 foreach (XmlNode xActionNode in listNode.ChildNodes)
                 {
                     if (xActionNode.Name.Equals("Action"))
                     {
                         CConfig.SetListConfig(mAlarmActionList, new CActionParam(), xActionNode);
                     }
                 }
             }
             else if (listNode.Name.Equals("TransactList"))
             {
                 foreach (XmlNode xActionNode in listNode.ChildNodes)
                 {
                     if (xActionNode.Name.Equals("Action"))
                     {
                         CConfig.SetListConfig(mTransactActionList, new CActionParam(), xActionNode);
                     }
                 }
             }
         }
         return(true);
     }
     return(false);
 }
예제 #2
0
        protected override bool SetXmlData(XmlNode node)
        {
            if (node.Name.Equals("RunList"))
            {
                foreach (XmlNode xRunNode in node.ChildNodes)
                {
                    if (xRunNode.Name.Equals("RunConfig"))
                    {
                        CConfig.SetListConfig((IList)mRunConfigList, new CRunConfig(ParentConfig), xRunNode);
                    }
                }
                return(true);
            }

            return(false);
        }