コード例 #1
0
        public void ReadStatisticsData(string path)
        {
            try
            {
                StatistiCsvDataRepository.LoadData(path);
            }
            catch (DalException exception)
            {
                throw new BllException(string.Format("{0}: {1}", "Exception of DAL", exception.Message));
            }

            StatistiCsvDataRepository.NormalizeData();
        }
コード例 #2
0
        private void ReadNextChunk()
        {
            if (_forexTreeCsvDataRepository.CsvLinesNormalized != null)
            {
                if (_index < _forexTreeCsvDataRepository.CsvLinesNormalized.Count && _pathIndex != 0)
                {
                    return;
                }
            }

            var path = _forexMarketPathRepository.Paths[_pathIndex++];

            _forexTreeCsvDataRepository.LoadData(path);
            _forexTreeCsvDataRepository.NormalizeData(0);
            _index = 0;
        }
コード例 #3
0
 public void ReadCsv(string filePath)
 {
     try
     {
         _yahooDataRepository.LoadData(filePath);
         _yahooDataRepository.NormalizeData();
     }
     catch (DalException exception)
     {
         throw new BllException(string.Format("{0}: {1}", "Exception of DAL", exception.Message));
     }
     catch (Exception exception)
     {
         throw new BllException(string.Format("{0}: {1}", "Exception of other origin", exception.Message));
     }
 }