public PriceTilesViewController (IReactiveTrader reactiveTrader, IConcurrencyService concurrencyService) : base(UITableViewStyle.Plain) { this._concurrencyService = concurrencyService; this._reactiveTrader = reactiveTrader; Title = "Prices"; TabBarItem.Image = UIImage.FromBundle ("tab_prices"); _model = new PriceTilesModel (_reactiveTrader, _concurrencyService); _model.ActiveCurrencyPairs.CollectionChanged += (sender, e) => { foreach (var model in e.NewItems.Cast<PriceTileModel>()) { model.OnChanged .Subscribe (OnItemChanged); } if (IsViewLoaded) { TableView.ReloadData (); } }; _model.Initialise (); }
public PriceTilesViewController(IReactiveTrader reactiveTrader, IConcurrencyService concurrencyService) : base(UITableViewStyle.Plain) { this._concurrencyService = concurrencyService; this._reactiveTrader = reactiveTrader; Title = "Prices"; TabBarItem.Image = UIImage.FromBundle("tab_prices"); _model = new PriceTilesModel(_reactiveTrader, _concurrencyService); _model.ActiveCurrencyPairs.CollectionChanged += (sender, e) => { foreach (var model in e.NewItems.Cast <PriceTileModel>()) { model.OnChanged .Subscribe(OnItemChanged); } if (IsViewLoaded) { TableView.ReloadData(); } }; _model.Initialise(); }
public PriceTilesViewSource (PriceTilesModel priceTilesModel) { this.priceTilesModel = priceTilesModel; }
public PriceTilesViewSource(PriceTilesModel priceTilesModel) { this.priceTilesModel = priceTilesModel; }