private void GetStockScore(object sender, RoutedEventArgs e) { IDataAnalyzer dataAnalyzer = new DataAnalyzer.DataAnalyzer(); viewModel.display = ""; dataAnalyzer.resetParameterFuturePriceDictionary(); foreach (string parameterName in AnalyzedDataInformation.parameterIndexForScore.Keys) { dataAnalyzer.appendParameterFuturePriceDictionary(parameterName, Core.finalParameterFuturePriceTableManager.getParameterFuturePriceTable(parameterName)); } int count = 0, all = Core.stockListManager.getStockList().Select(x => x.ID).Count(); foreach (var ID in Core.stockListManager.getStockList().Select(x => x.ID)) { dataAnalyzer.setAnalyzedData(Core.analyzedDataManager.getAnalyzedData(ID)); dataAnalyzer.setScoreData(Core.scoreDataManager.getScoreData(ID)); dataAnalyzer.calculateScoreData(); Core.scoreDataManager.saveScoreData(ID, dataAnalyzer.getScoreData()); viewModel.display = $"get stock score{ID} ({++count}/{all})\r\n" + dataAnalyzer.getDisplay() + "\r\n" + viewModel.display; refreshText(); } }