Use SymbolCache
This commit is contained in:
@@ -17,6 +17,7 @@ using TradeBlotter.DataAccess;
|
||||
using TradeBlotter.Model;
|
||||
using TradeBlotter.Command;
|
||||
using Microsoft.Research.DynamicDataDisplay.DataSources;
|
||||
using TradeBlotter.Cache;
|
||||
|
||||
namespace TradeBlotter.ViewModels
|
||||
{
|
||||
@@ -117,7 +118,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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user