public StockListViewModel(IControllerFactory factory, IStockSubject subject) { this.factory = factory; subject.Subscribe(this); this.SelectCommand = new DelegateCommand( () => RaiseStockSelectedEvent(Stock), obj => Stock != null); this.Stocks = new ObservableCollection <StockDisplayDTO>(); Update(); }
public void Update(IStockSubject subject) { LogHelper.Log($"Investor: {name} has been notified about change {subject.Currency} currency to: {subject.Price:C2}"); }