///////////////////////////////////////// private void LoadLogicClass(XmlNode xNode) { XmlNodeList xNodeList = xNode.SelectNodes("Class"); for (int i = 0; i < xNodeList.Count; ++i) { XmlNode xNodeClass = xNodeList.Item(i); XmlAttribute strID = xNodeClass.Attributes["Id"]; XmlAttribute strPath = xNodeClass.Attributes["Path"]; XmlAttribute strInstancePath = xNodeClass.Attributes["InstancePath"]; NFIClass xLogicClass = new NFClass(); mhtObject.Add(strID.Value, xLogicClass); xLogicClass.SetName(strID.Value); xLogicClass.SetPath(strPath.Value); xLogicClass.SetInstance(strInstancePath.Value); xLogicClass.SetEncrypt(false); XmlNodeList xNodeSubClassList = xNodeClass.SelectNodes("Class"); if (xNodeSubClassList.Count > 0) { LoadLogicClass(xNodeClass); } } }
public override bool AddElement(string strName) { if (!mhtObject.ContainsKey(strName)) { NFIClass xElement = new NFClass(); xElement.SetName(strName); xElement.SetEncrypt(false); mhtObject.Add(strName, xElement); return(true); } return(false); }