NFrame.NFCLogicClass.SetInstance C# (CSharp) Method

SetInstance() public method

public SetInstance ( string strInstancePath ) : void
strInstancePath string
return void
        public override void SetInstance(string strInstancePath)
        {
            mstrInstance = strInstancePath;
        }

Usage Example

Example #1
0
        /////////////////////////////////////////
        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"];

                NFILogicClass xLogicClass = new NFCLogicClass();
                mhtObject.Add(strID.Value, xLogicClass);

                xLogicClass.SetName(strID.Value);
                xLogicClass.SetPath(strPath.Value);
                xLogicClass.SetInstance(strInstancePath.Value);
                xLogicClass.SetEncrypt(mbEncrypt);

                XmlNodeList xNodeSubClassList = xNodeClass.SelectNodes("Class");
                if (xNodeSubClassList.Count > 0)
                {
                    LoadLogicClass(xNodeClass);
                }
            }
        }
All Usage Examples Of NFrame.NFCLogicClass::SetInstance