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(); }
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(); }