Use SymbolCache

This commit is contained in:
2024-05-24 15:11:01 -04:00
parent e0d225ad17
commit 64b5fe93c3

View File

@@ -17,6 +17,7 @@ using TradeBlotter.Command;
using TradeBlotter.Model;
using Microsoft.Research.DynamicDataDisplay.DataSources;
using System.Threading;
using TradeBlotter.Cache;
namespace TradeBlotter.ViewModels
{
@@ -234,7 +235,8 @@ namespace TradeBlotter.ViewModels
private void HandleSelectedWatchList()
{
MDTrace.WriteLine(LogLevel.DEBUG, "AnalystRatingsViewModel::HandleSelectedDate");
if (selectedWatchList.Equals(Constants.CONST_ALL)) symbols = PricingDA.GetSymbols();
// if (selectedWatchList.Equals(Constants.CONST_ALL)) symbols = PricingDA.GetSymbols();
if (selectedWatchList.Equals(Constants.CONST_ALL)) symbols = SymbolCache.GetInstance().GetSymbols();
else
{
symbols = WatchListDA.GetWatchList(selectedWatchList);