コード例 #1
0
 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); }
 }
コード例 #2
0
        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);
        }