public PositionsViewModel() { InitialiseViewModel(); _positions = new ObservableCollection <IgPublicApiData.PositionModel>(); // Initialise LS subscriptions _l1PricesSubscription = new L1PricesSubscription(this); // initialise the LS SubscriptionTableKeys _l1PositionPricesTableKey = new SubscribedTableKey(); // Important to initialise to null. _l1PositionPricesTableKey = null; }
public WatchlistsViewModel() { _watchlists = new ObservableCollection <IgPublicApiData.WatchlistModel>(); _watchlistMarkets = new ObservableCollection <IgPublicApiData.WatchlistMarketModel>(); // Initialise to first index in datagrid. WatchlistIndex = 0; WatchlistMarketIndex = 0; WireCommands(); _l1PricesSubscription = new L1PricesSubscription(this); _watchlistL1PricesSubscribedTableKey = new SubscribedTableKey(); _watchlistL1PricesSubscribedTableKey = null; }
public WatchlistsViewModel() { _watchlists = new ObservableCollection<IgPublicApiData.WatchlistModel>(); _watchlistMarkets = new ObservableCollection<IgPublicApiData.WatchlistMarketModel>(); // Initialise to first index in datagrid. WatchlistIndex = 0; WatchlistMarketIndex = 0; WireCommands(); _l1PricesSubscription = new L1PricesSubscription(this); _watchlistL1PricesSubscribedTableKey = new SubscribedTableKey(); _watchlistL1PricesSubscribedTableKey = null; }
public PositionsViewModel() { InitialiseViewModel(); _positions = new ObservableCollection<IgPublicApiData.PositionModel>(); // Initialise LS subscriptions _l1PricesSubscription = new L1PricesSubscription(this); // initialise the LS SubscriptionTableKeys _l1PositionPricesTableKey = new SubscribedTableKey(); // Important to initialise to null. _l1PositionPricesTableKey = null; }