internal bool WriteXML()
 {
     try
     {
         _exchangeRatesConfig.AcceptChanges();
         Stream fileStream = new FileStream(new EMPath(EM_AppContext.FolderEuromodFiles).GetExRatesFilePath(true), FileMode.Create);
         using (XmlTextCDATAWriter xmlWriter = new XmlTextCDATAWriter(fileStream, DefGeneral.DEFAULT_ENCODING, _cDataElements))
             _exchangeRatesConfig.WriteXml(xmlWriter);
         return(true);
     }
     catch (Exception exception) { UserInfoHandler.ShowException(exception); return(false); }
 }
 internal bool LoadExchangeRatesConfig()
 {
     try
     {
         if (_exchangeRatesConfig == null)
         {
             _exchangeRatesConfig = new ExchangeRatesConfig();
             if (File.Exists(_pathExchangeRatesConfig))
             {
                 using (StreamReader streamReader = new StreamReader(_pathExchangeRatesConfig, DefGeneral.DEFAULT_ENCODING))
                     _exchangeRatesConfig.ReadXml(streamReader);
             }
             _exchangeRatesConfig.AcceptChanges();
         }
         return(true);
     }
     catch (Exception exception) { UserInfoHandler.ShowException(exception); return(false); }
 }