internal bool LoadHICPConfig() { try { if (_HICPConfig == null) { _HICPConfig = new HICPConfig(); if (File.Exists(_pathHICPConfig)) { using (StreamReader streamReader = new StreamReader(_pathHICPConfig, DefGeneral.DEFAULT_ENCODING)) _HICPConfig.ReadXml(streamReader); } _HICPConfig.AcceptChanges(); } return(true); } catch (Exception exception) { UserInfoHandler.ShowException(exception); return(false); } }
internal static HICPConfig.HICPRow CopyHICPFromAnotherConfig(HICPConfig hicpConfig, HICPConfig.HICPRow originalHicp) { HICPConfig.HICPRow hicpRow = hicpConfig.HICP.AddHICPRow(originalHicp.Country, originalHicp.Year, originalHicp.Value, originalHicp.Comment); return(hicpRow); }