Beispiel #1
0
        private static void Init()
        {
            _tabType  = new Hashtable();
            _tabCheck = new Hashtable();

            LZTools.Xml.XmlOperate xml = new LZTools.Xml.XmlOperate();
            string sPath = string.Format("{0}\\types.xml", System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath));

            xml.LoadXmlFile(sPath);
            string[] typeList = xml.GetNodeTextArray("//config/item");
            foreach (string t in typeList)
            {
                DefineExtraType(t);
            }
            xml.CloseXmlReader();
        }
Beispiel #2
0
        private static void Init()
        {
            _tabType = new Hashtable();
            _tabCheck = new Hashtable();

            LZTools.Xml.XmlOperate xml = new LZTools.Xml.XmlOperate();
            string sPath = string.Format("{0}\\types.xml", System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath));
            xml.LoadXmlFile(sPath);
            string[] typeList = xml.GetNodeTextArray("//config/item");
            foreach (string t in typeList)
            {
                DefineExtraType(t);
            }
            xml.CloseXmlReader();
        }