Use SymbolCache

This commit is contained in:
2024-05-24 15:12:29 -04:00
parent 64b5fe93c3
commit e5ebde9117
14 changed files with 40 additions and 14 deletions

View File

@@ -17,6 +17,7 @@ using TradeBlotter.DataAccess;
using TradeBlotter.Command;
using TradeBlotter.Model;
using Microsoft.Research.DynamicDataDisplay.DataSources;
using TradeBlotter.Cache;
namespace TradeBlotter.ViewModels
{
@@ -96,7 +97,8 @@ namespace TradeBlotter.ViewModels
}
else if (eventArgs.PropertyName.Equals("SelectedWatchList"))
{
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);
base.OnPropertyChanged("Symbols");
}