diff --git a/ViewModels/BollingerBandViewModel.cs b/ViewModels/BollingerBandViewModel.cs index be27558..515c9ca 100644 --- a/ViewModels/BollingerBandViewModel.cs +++ b/ViewModels/BollingerBandViewModel.cs @@ -341,7 +341,8 @@ namespace TradeBlotter.ViewModels BusyContent = DATA_MESSAGE; Task workerTask = Task.Factory.StartNew(() => { - 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); }); workerTask.ContinueWith((continuation) => diff --git a/ViewModels/MainWindowViewModel.cs b/ViewModels/MainWindowViewModel.cs index 752a6ac..621f3e1 100644 --- a/ViewModels/MainWindowViewModel.cs +++ b/ViewModels/MainWindowViewModel.cs @@ -95,6 +95,7 @@ namespace TradeBlotter.ViewModels try{LocalPriceCache.GetInstance().Dispose();}catch(Exception){;} try{GBPriceCache.GetInstance().Dispose();}catch(Exception){;} try{PriceCache.GetInstance().Dispose();}catch(Exception){;} + try{SymbolCache.GetInstance().Dispose();}catch(Exception){;} base.OnDispose(); } public override SaveParameters GetSaveParameters()