Commit Latest
This commit is contained in:
@@ -104,8 +104,29 @@ namespace PortfolioManager.ViewModels
|
||||
|
||||
private void OnViewModelPropertyChanged(object sender, PropertyChangedEventArgs eventArgs)
|
||||
{
|
||||
|
||||
if ((eventArgs.PropertyName.Equals("SyncTradeToBand") ||
|
||||
if(eventArgs.PropertyName.Equals("SelectedWatchList"))
|
||||
{
|
||||
IsBusy=true;
|
||||
|
||||
Task workerTask = Task.Factory.StartNew(()=>
|
||||
{
|
||||
symbols.Clear();
|
||||
if(UIConstants.CONST_ALL.Equals(selectedWatchList))
|
||||
{
|
||||
symbols.AddRange(PricingDA.GetSymbols());
|
||||
}
|
||||
else
|
||||
{
|
||||
symbols.AddRange(WatchListDA.GetWatchList(selectedWatchList));
|
||||
}
|
||||
});
|
||||
workerTask.ContinueWith((continuation)=>
|
||||
{
|
||||
IsBusy=false;
|
||||
base.OnPropertyChanged("Symbols");
|
||||
});
|
||||
}
|
||||
else if ((eventArgs.PropertyName.Equals("SyncTradeToBand") ||
|
||||
eventArgs.PropertyName.Equals("ShowTradeLabels") ||
|
||||
eventArgs.PropertyName.Equals("SelectedSymbol") ||
|
||||
eventArgs.PropertyName.Equals("ShowRiskFree") ||
|
||||
@@ -127,6 +148,8 @@ namespace PortfolioManager.ViewModels
|
||||
bollingerBandRenderer.ExternalStopLimits = stopLimits;
|
||||
bollingerBandRenderer.SetData(selectedSymbol, selectedDayCount);
|
||||
bollingerBandRenderer.Render();
|
||||
// bollingerBandRenderer.SetData(selectedSymbol, selectedDayCount); // do it twice. The second render will figure out the text image overlaps
|
||||
// bollingerBandRenderer.Render();
|
||||
});
|
||||
workerTask.ContinueWith((continuation) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user