Esempio n. 1
0
        private void LoadSystemParameters()
        {
            string      configfilename = Xmler.GetAppSettingValue("keywords", "wxgconfig.xml");
            string      configfile     = Path.Combine(FileHelper.AssemblyPath, configfilename);
            XmlDocument doc            = new XmlDocument();

            doc.Load(configfile);
            // Load Patterns
            XmlNode patternNode = doc.SelectSingleNode("wxg/system/patterns");

            LoadSystemPattern(patternNode);
        }
Esempio n. 2
0
        private void LoadSystemParameters()
        {
            string      configfilename = Xmler.GetAppSettingValue("wxgconfig", "wxgconfig.xml");
            string      configfile     = Path.Combine(FileHelper.AssemblyPath, configfilename);
            XmlDocument doc            = new XmlDocument();

            if (!File.Exists(configfile))
            {
                doc.LoadXml(Resources.WxgConfig);
            }
            else
            {
                doc.Load(configfile);
            }
            // Load Patterns
            XmlNode patternNode = doc.SelectSingleNode("wxg/system/patterns");

            LoadSystemPattern(patternNode);
        }