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