Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public void Update(IStockSubject subject)
 {
     LogHelper.Log($"Investor: {name} has been notified about change {subject.Currency} currency to: {subject.Price:C2}");
 }