/// <summary> /// Loads the settings for the defined Xml Settings File /// </summary> /// <param name="XmlSettingsFilePath">The path to the XML settings file.</param> /// <param name="isCaseSensitive">Case sensitive names if True. Non-case sensitive if false.</param> /// <remarks>If case sensitive names are in place, all section and key names must be lowercase</remarks> public bool LoadSettings(string XmlSettingsFilePath, bool isCaseSensitive) { mCaseSensitive = isCaseSensitive; m_XMLFilePath = XmlSettingsFilePath; // Note: Always set isCaseSensitive = True for XMLFileReader's constructor since this class handles // case sensitivity mapping internally m_XMLFileAccessor = new XMLFileReader(m_XMLFilePath, true); if (m_XMLFileAccessor == null) { return(false); } if (m_XMLFileAccessor.Initialized) { CacheSectionNames(); return(true); } return(false); }
public bool ManualParseXmlOrIniFile(string filePath) { m_XMLFilePath = filePath; // Note: Always set isCaseSensitive = True for XMLFileReader's constructor since this class handles // case sensitivity mapping internally m_XMLFileAccessor = new XMLFileReader(string.Empty, true); if (m_XMLFileAccessor == null) { return(false); } if (m_XMLFileAccessor.ManualParseXmlOrIniFile(filePath)) { if (m_XMLFileAccessor.Initialized) { CacheSectionNames(); return(true); } } return(false); }